expectNotToPerformAssertions(); $path = dirname(__DIR__) . '/tests/openapi.yaml'; $specification = \file_get_contents($path); if ($specification === false) { throw new Exception('Missing required test data.'); } $validator = (new ValidatorBuilder()) ->fromYaml($specification) ->getRequestValidator(); $validator->validate($request); } }