/** * @covers \examples\statemachines\PwrCall\PwrCall::isEndState */ public function testIsNotEndState() { $this->assertFalse($this->pwrcall->isEndState()); }
/** * @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::stopCalling * @covers \examples\statemachines\PwrCall\CustCallHangupState::stopCalling * @uses \examples\statemachines\PwrCall\PwrCall::isEndState */ public function testCanStopCalling() { $this->pwrcall->stopCalling(); $this->assertTrue($this->pwrcall->isEndState()); }