Exemplo n.º 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();
 }
Exemplo n.º 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());
 }