public function throwIfUnsupportedApiGiven() { $action = new CaptureAction(); $action->setApi(new \stdClass()); }