mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-06-25 02:33:36 +02:00
88 - Added undo example for command pattern
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user