示例#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
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::startCalling
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::startCalling
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotStartCalling()
 {
     $this->pwrcall->startCalling();
 }