/**
  * @param \Payum\Core\Action\ActionInterface $action
  * @param mixed                              $request
  *
  * @throws RequestNotSupportedException
  */
 public static function assertSupports(ActionInterface $action, $request)
 {
     if (false == $action->supports($request)) {
         throw static::createActionNotSupported($action, $request);
     }
 }
示例#2
0
 /**
  * @test
  *
  * @dataProvider provideNotSupportedRequests
  */
 public function shouldNotSupportRequest($request)
 {
     $this->assertFalse($this->action->supports($request));
 }