/** * @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); } }
/** * @test * * @dataProvider provideNotSupportedRequests */ public function shouldNotSupportRequest($request) { $this->assertFalse($this->action->supports($request)); }