1
0
Fork 0
pull/7999/head
Jordi Boggiano 2019-02-20 13:41:43 +01:00
parent bdf1f7f82b
commit 8fe2b9ec69
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 7 additions and 1 deletions

View File

@ -99,7 +99,13 @@ class ComposerRepositoryTest extends TestCase
public function testWhatProvides() public function testWhatProvides()
{ {
$repo = $this->getMockBuilder('Composer\Repository\ComposerRepository') $repo = $this->getMockBuilder('Composer\Repository\ComposerRepository')
->disableOriginalConstructor() ->setConstructorArgs(array(
array('url' => 'https://dummy.test.link'),
new NullIO,
FactoryMock::createConfig(),
$this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock(),
$this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')->disableOriginalConstructor()->getMock()
))
->setMethods(array('fetchFile')) ->setMethods(array('fetchFile'))
->getMock(); ->getMock();