Ejemplo n.º 1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::agentHangup
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::agentHangup
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotAgentHangup()
 {
     $this->pwrcall->agentHangup();
 }
Ejemplo n.º 2
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::agentHangup
  * @covers \examples\statemachines\PwrCall\InCallState::agentHangup
  * @uses   \examples\statemachines\PwrCall\PwrCall::isAgentCallHangupState
  */
 public function testCanAgentHangup()
 {
     $this->pwrcall->agentHangup();
     $this->assertTrue($this->pwrcall->isAgentCallHangupState());
 }