/** * @covers \examples\statemachines\PwrCall\PwrCall::startCalling * @covers \examples\statemachines\PwrCall\UserParkedState::startCalling * @uses \examples\statemachines\PwrCall\PwrCall::isNextCallState */ public function testCanStartCalling() { $this->pwrcall->startCalling(); $this->assertTrue($this->pwrcall->isNextCallState()); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::startCalling * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::startCalling * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotStartCalling() { $this->pwrcall->startCalling(); }