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
|
@ -35,12 +35,11 @@ class CacheTest extends TestCase
|
|||
|
||||
$this->finder = $this->getMockBuilder('Symfony\Component\Finder\Finder')->disableOriginalConstructor()->getMock();
|
||||
|
||||
$io = $this->getMock('Composer\IO\IOInterface');
|
||||
$this->cache = $this->getMock(
|
||||
'Composer\Cache',
|
||||
array('getFinder'),
|
||||
array($io, $this->root)
|
||||
);
|
||||
$io = $this->getMockBuilder('Composer\IO\IOInterface')->getMock();
|
||||
$this->cache = $this->getMockBuilder('Composer\Cache')
|
||||
->setMethods(array('getFinder'))
|
||||
->setConstructorArgs(array($io, $this->root))
|
||||
->getMock();
|
||||
$this->cache
|
||||
->expects($this->any())
|
||||
->method('getFinder')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue