Esempio n. 1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::cancel
  * @covers \examples\statemachines\PwrCall\UserParkedState::cancel
  * @uses   \examples\statemachines\PwrCall\PwrCall::isEndState
  */
 public function testCanCancel()
 {
     $this->pwrcall->cancel();
     $this->assertTrue($this->pwrcall->isEndState());
 }
Esempio n. 2
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::cancel
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::cancel
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotCancel()
 {
     $this->pwrcall->cancel();
 }