/** * @covers \examples\statemachines\PwrCall\PwrCall::userRegistered * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::userRegistered * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException */ public function testCannotUserRegistered() { $this->pwrcall->userRegistered(); }
/** * @covers \examples\statemachines\PwrCall\PwrCall::userRegistered * @covers \examples\statemachines\PwrCall\WaitForUserRegState::userRegistered * @uses \examples\statemachines\PwrCall\PwrCall::isWaitForUserParkedState */ public function testCanUserRegistered() { $this->pwrcall->userRegistered(); $this->assertTrue($this->pwrcall->isWaitForUserParkedState()); }