/** * @covers \examples\statemachines\PwrCall\PwrCall::agentHangup * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::agentHangup * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotAgentHangup() { $this->pwrcall->agentHangup(); }
/** * @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()); }