1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Turn EventDispatcher into generic solution handling plugins as well

This commit is contained in:
Nils Adermann 2013-08-14 17:42:11 +02:00
parent 2f43e9aefb
commit 3960edd64e
17 changed files with 320 additions and 68 deletions

View file

@ -72,7 +72,7 @@ class AutoloadGeneratorTest extends TestCase
}));
$this->repository = $this->getMock('Composer\Repository\InstalledRepositoryInterface');
$this->eventDispatcher = $this->getMockBuilder('Composer\Script\EventDispatcher')
$this->eventDispatcher = $this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')
->disableOriginalConstructor()
->getMock();
@ -626,12 +626,12 @@ EOF;
{
$this->eventDispatcher
->expects($this->at(0))
->method('dispatch')
->method('dispatchScript')
->with(ScriptEvents::PRE_AUTOLOAD_DUMP, false);
$this->eventDispatcher
->expects($this->at(1))
->method('dispatch')
->method('dispatchScript')
->with(ScriptEvents::POST_AUTOLOAD_DUMP, false);
$package = new Package('a', '1.0', '1.0');