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