/** * @covers \examples\statemachines\PwrCall\PwrCall::cancel * @covers \examples\statemachines\PwrCall\UserParkedState::cancel * @uses \examples\statemachines\PwrCall\PwrCall::isEndState */ public function testCanCancel() { $this->pwrcall->cancel(); $this->assertTrue($this->pwrcall->isEndState()); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::cancel * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::cancel * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotCancel() { $this->pwrcall->cancel(); }