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