/** * @covers \examples\statemachines\PwrCall\PwrCall::restartAfterTechFailure * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::restartAfterTechFailure * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotRestartAfterTechFailure() { $this->pwrcall->restartAfterTechFailure(); }
/** * @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()); }