1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Implement writeError throughout Composer

This commit is contained in:
Rob Bast 2015-02-06 13:52:44 +01:00
parent 84d4594278
commit cb336a5416
65 changed files with 390 additions and 322 deletions

View file

@ -33,7 +33,7 @@ class EventDispatcherTest extends TestCase
), $io);
$io->expects($this->once())
->method('write')
->method('writeError')
->with('<error>Script Composer\Test\EventDispatcher\EventDispatcherTest::call handling the post-install-cmd event terminated with an exception</error>');
$dispatcher->dispatchScript(ScriptEvents::POST_INSTALL_CMD, false);
@ -189,7 +189,7 @@ class EventDispatcherTest extends TestCase
->will($this->returnValue($listener));
$io->expects($this->once())
->method('write')
->method('writeError')
->with($this->equalTo('<error>Script '.$code.' handling the post-install-cmd event returned with an error</error>'));
$this->setExpectedException('RuntimeException');