コード例 #1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::restartAfterTechFailure
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::restartAfterTechFailure
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotRestartAfterTechFailure()
 {
     $this->pwrcall->restartAfterTechFailure();
 }
コード例 #2
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::restartAfterTechFailure
  * @covers \examples\statemachines\PwrCall\UserRegFailState::restartAfterTechFailure
  * @uses   \examples\statemachines\PwrCall\PwrCall::isStartUpState
  */
 public function testCanRestartAfterTechFailure()
 {
     $this->pwrcall->restartAfterTechFailure();
     $this->assertTrue($this->pwrcall->isStartUpState());
 }