/** * @covers \examples\statemachines\PwrCall\PwrCall::customerHangup * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::customerHangup * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotCustomerHangup() { $this->pwrcall->customerHangup(); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::customerHangup * @covers \examples\statemachines\PwrCall\InCallState::customerHangup * @uses \examples\statemachines\PwrCall\PwrCall::isCustCallHangupState */ public function testCanCustomerHangup() { $this->pwrcall->customerHangup(); $this->assertTrue($this->pwrcall->isCustCallHangupState()); }