mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Remove use of deprecated getMock method
This commit is contained in:
parent
036fc44c25
commit
066351c5b9
42 changed files with 279 additions and 272 deletions
|
@ -93,7 +93,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
$this->vendorDir = $this->workingDir.DIRECTORY_SEPARATOR.'composer-test-autoload';
|
||||
$this->ensureDirectoryExistsAndClear($this->vendorDir);
|
||||
|
||||
$this->config = $this->getMock('Composer\Config');
|
||||
$this->config = $this->getMockBuilder('Composer\Config')->getMock();
|
||||
|
||||
$this->configValueMap = array(
|
||||
'vendor-dir' => function () use ($that) {
|
||||
|
@ -128,7 +128,7 @@ class AutoloadGeneratorTest extends TestCase
|
|||
|
||||
return $that->vendorDir.'/'.$package->getName() . ($targetDir ? '/'.$targetDir : '');
|
||||
}));
|
||||
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
|
||||
$this->repository = $this->getMockBuilder('Composer\Repository\InstalledRepositoryInterface')->getMock();
|
||||
|
||||
$this->eventDispatcher = $this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')
|
||||
->disableOriginalConstructor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue