88 - Added undo example for command pattern

This commit is contained in:
Andrew Nester
2016-01-16 17:06:43 +03:00
parent 4904def390
commit dddfdf65fc
5 changed files with 141 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class CommandTest extends \PHPUnit_Framework_TestCase
public function testInvocation()
{
$this->invoker->setCommand(new HelloCommand($this->receiver));
$this->expectOutputString('Hello World');
$this->invoker->run();
$this->assertEquals($this->receiver->getOutput(), 'Hello World');
}
}