コード例 #1
0
ファイル: StartUpStateTest.php プロジェクト: djsharman/state
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::isNextCallState
  */
 public function testIsNotNextCallState()
 {
     $this->assertFalse($this->pwrcall->isNextCallState());
 }
コード例 #2
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());
 }
コード例 #3
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::goNextCall
  * @covers \examples\statemachines\PwrCall\CustCallHangupState::goNextCall
  * @uses   \examples\statemachines\PwrCall\PwrCall::isNextCallState
  */
 public function testCanGoNextCall()
 {
     $this->pwrcall->goNextCall();
     $this->assertTrue($this->pwrcall->isNextCallState());
 }