コード例 #1
0
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::customerHangup
  * @covers \examples\statemachines\PwrCall\AbstractPwrCallState::customerHangup
  * @expectedException \examples\statemachines\PwrCall\IllegalStateTransitionException
  */
 public function testCannotCustomerHangup()
 {
     $this->pwrcall->customerHangup();
 }
コード例 #2
0
ファイル: InCallStateTest.php プロジェクト: djsharman/state
 /**
  * @covers \examples\statemachines\PwrCall\PwrCall::customerHangup
  * @covers \examples\statemachines\PwrCall\InCallState::customerHangup
  * @uses   \examples\statemachines\PwrCall\PwrCall::isCustCallHangupState
  */
 public function testCanCustomerHangup()
 {
     $this->pwrcall->customerHangup();
     $this->assertTrue($this->pwrcall->isCustCallHangupState());
 }