fromYamlFile($yamlFile)->getServerRequestValidator(); $validator->validate($this->makeRequest()); $this->addToAssertionCount(1); } protected function makeRequest() : ServerRequest { return new ServerRequest( 'GET', 'http://localhost:8000/foo' ); } }