コード例 #1
0
 /**
  * @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());
 }
コード例 #2
0
ファイル: StartUpStateTest.php プロジェクト: djsharman/state
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::startCalling
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::startCalling
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotStartCalling()
 {
     $this->pwrcall->startCalling();
 }