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