fromYamlFile($yamlFile)->getServerRequestValidator(); $validator->validate($this->makeRequest()); $this->addToAssertionCount(1); } public function testItResolvesSchemaRefsFromYamlFileGreen() : void { $yamlFile = __DIR__ . '/../stubs/SchemaWithRefs.yaml'; $validator = (new ValidatorBuilder())->fromYamlFile($yamlFile)->getServerRequestValidator(); $validator->validate($this->makeRequest()); $this->addToAssertionCount(1); } protected function makeRequest() : ServerRequest { return new ServerRequest( 'POST', 'http://localhost:8000/products.create', ['Content-Type' => 'application/json'], <<