/**
  * @test
  *
  * @expectedException \Payum2\Exception\RequestNotSupportedException
  */
 public function throwIfNotSupportedRequestGivenAsArgumentForExecute()
 {
     $action = new StatusAction();
     $action->execute(new \stdClass());
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function shouldMarkFailedStatusIfArrayObjectHasResponseCodeError()
 {
     $action = new StatusAction();
     $model = new ArrayObject();
     $model['isSuccessful'] = false;
     $request = new BinaryMaskStatusRequest($model);
     $action->execute($request);
     $this->assertTrue($request->isFailed());
 }