/** * @covers \examples\statemachines\PwrCall\PwrCall::reqRegState * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::reqRegState * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotReqRegState() { $this->pwrcall->reqRegState(); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::reqRegState * @covers \examples\statemachines\PwrCall\StartUpState::reqRegState * @uses \examples\statemachines\PwrCall\PwrCall::isWaitForUserRegState */ public function testCanReqRegState() { $this->pwrcall->reqRegState(); $this->assertTrue($this->pwrcall->isWaitForUserRegState()); }