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:
parent
84d4594278
commit
cb336a5416
65 changed files with 390 additions and 322 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue