/** * @covers \examples\statemachines\PwrCall\PwrCall::stopCalling * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::stopCalling * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotStopCalling() { $this->pwrcall->stopCalling(); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::stopCalling * @covers \examples\statemachines\PwrCall\CustCallHangupState::stopCalling * @uses \examples\statemachines\PwrCall\PwrCall::isEndState */ public function testCanStopCalling() { $this->pwrcall->stopCalling(); $this->assertTrue($this->pwrcall->isEndState()); }