예제 #1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::goNextCall
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::goNextCall
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotGoNextCall()
 {
     $this->pwrcall->goNextCall();
 }
예제 #2
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::goNextCall
  * @covers \examples\statemachines\PwrCall\CustCallHangupState::goNextCall
  * @uses   \examples\statemachines\PwrCall\PwrCall::isNextCallState
  */
 public function testCanGoNextCall()
 {
     $this->pwrcall->goNextCall();
     $this->assertTrue($this->pwrcall->isNextCallState());
 }