validator->validate($operation, $response); } public function setUp(): void { parent::setUp(); $this->initDatabase(); $openApiDefinition = $this->app->get('path.resources.api') . '/openapi.yml'; $this->validator = (new OpenApiValidatorBuilder()) ->fromYamlFile($openApiDefinition) ->getResponseValidator(); } }