Example #1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::reqRegState
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::reqRegState
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotReqRegState()
 {
     $this->pwrcall->reqRegState();
 }
Example #2
0
 /**
  * @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());
 }