mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +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
|
@ -20,7 +20,7 @@ class BasePackageTest extends TestCase
|
|||
public function testSetSameRepository()
|
||||
{
|
||||
$package = $this->getMockForAbstractClass('Composer\Package\BasePackage', array('foo'));
|
||||
$repository = $this->getMock('Composer\Repository\RepositoryInterface');
|
||||
$repository = $this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock();
|
||||
|
||||
$package->setRepository($repository);
|
||||
try {
|
||||
|
@ -37,8 +37,8 @@ class BasePackageTest extends TestCase
|
|||
{
|
||||
$package = $this->getMockForAbstractClass('Composer\Package\BasePackage', array('foo'));
|
||||
|
||||
$package->setRepository($this->getMock('Composer\Repository\RepositoryInterface'));
|
||||
$package->setRepository($this->getMock('Composer\Repository\RepositoryInterface'));
|
||||
$package->setRepository($this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock());
|
||||
$package->setRepository($this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue