Example #1
0
 /**
  * @test
  */
 public function shouldMarkUnknownIfExecCodeTimeOut()
 {
     $action = new StatusAction();
     $action->execute($status = new GetHumanStatus(array('EXECCODE' => Api::EXECCODE_TIME_OUT)));
     $this->assertTrue($status->isUnknown());
 }
Example #2
0
 /**
  * @test
  * 
  * @expectedException \Payum\Core\Exception\RequestNotSupportedException
  */
 public function throwIfNotSupportedRequestGivenAsArgumentForExecute()
 {
     $action = new StatusAction();
     $action->execute(new \stdClass());
 }