mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix all remaining php8.1 test suite deprecations
This commit is contained in:
parent
b77fce8a4f
commit
a586a753df
15 changed files with 184 additions and 268 deletions
|
@ -17,6 +17,7 @@ use Composer\Test\TestCase;
|
|||
use Composer\Util\Filesystem;
|
||||
use Composer\Config;
|
||||
use Composer\Util\Perforce;
|
||||
use Composer\Test\Mock\ProcessExecutorMock;
|
||||
|
||||
/**
|
||||
* @author Matt Whittom <Matt.Whittom@veteransunited.com>
|
||||
|
@ -42,7 +43,7 @@ class PerforceDriverTest extends TestCase
|
|||
$this->config = $this->getTestConfig($this->testPath);
|
||||
$this->repoConfig = $this->getTestRepoConfig();
|
||||
$this->io = $this->getMockIOInterface();
|
||||
$this->process = $this->getMockProcessExecutor();
|
||||
$this->process = new ProcessExecutorMock;
|
||||
$this->httpDownloader = $this->getMockHttpDownloader();
|
||||
$this->perforce = $this->getMockPerforce();
|
||||
$this->driver = new PerforceDriver($this->repoConfig, $this->io, $this->config, $this->httpDownloader, $this->process);
|
||||
|
@ -94,11 +95,6 @@ class PerforceDriverTest extends TestCase
|
|||
return $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
}
|
||||
|
||||
protected function getMockProcessExecutor()
|
||||
{
|
||||
return $this->getMockBuilder('Composer\Util\ProcessExecutor')->getMock();
|
||||
}
|
||||
|
||||
protected function getMockHttpDownloader()
|
||||
{
|
||||
return $this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue