コード例 #1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::userRegFailed
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::userRegFailed
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotUserRegFailed()
 {
     $this->pwrcall->userRegFailed();
 }
コード例 #2
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::userRegFailed
  * @covers \examples\statemachines\PwrCall\WaitForUserRegState::userRegFailed
  * @uses   \examples\statemachines\PwrCall\PwrCall::isUserRegFailState
  */
 public function testCanUserRegFailed()
 {
     $this->pwrcall->userRegFailed();
     $this->assertTrue($this->pwrcall->isUserRegFailState());
 }