Пример #1
0
 public function testAction()
 {
     $action = $this->getMock('Arcturial\\StateMachine\\State\\ActionInterface', array('run'));
     $action->expects($this->once())->method('run')->will($this->returnValue(true));
     $state = new State('test');
     $state->addAction($action);
     $this->assertTrue($state->process());
 }