1
0
Fork 0

Fix test suite

pull/1615/merge
Jordi Boggiano 2013-02-24 18:21:16 +01:00
parent 5652ce5e55
commit 7b4d1251cb
1 changed files with 4 additions and 4 deletions

View File

@ -186,13 +186,13 @@ class InstallerTest extends TestCase
$composer->setLocker($locker);
$eventDispatcher = $this->getMockBuilder('Composer\Script\EventDispatcher')->disableOriginalConstructor()->getMock();
$autoloadGenerator = $this->getMockBuilder('Composer\Autoload\AutoloadGenerator')->disableOriginalConstructor()->getMock();
$autoloadGenerator = $this->getMock('Composer\Autoload\AutoloadGenerator', array(), array($eventDispatcher));
$composer->setAutoloadGenerator($autoloadGenerator);
$composer->setEventDispatcher($eventDispatcher);
$installer = Installer::create(
$io,
$composer,
null,
$autoloadGenerator
$composer
);
$application = new Application;