1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00
This commit is contained in:
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

View file

@ -99,7 +99,13 @@ class ComposerRepositoryTest extends TestCase
public function testWhatProvides()
{
$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'))
->getMock();