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