dispatch($this->serverRequest($method, $url, "")); $this->assertMessage($exp, $act); } public function provideRequests(): iterable { return [ ["/version", "GET", new TextResponse(V1::VERSION)], ["/version", "POST", new EmptyResponse(405, ['Allow' => "HEAD, GET"])], ["/version", "OPTIONS", new EmptyResponse(204, ['Allow' => "HEAD, GET"])], ["/healthcheck", "GET", new TextResponse("OK")], ["/healthcheck", "POST", new EmptyResponse(405, ['Allow' => "HEAD, GET"])], ["/healthcheck", "OPTIONS", new EmptyResponse(204, ['Allow' => "HEAD, GET"])], ["/version/", "GET", new EmptyResponse(404)], ]; } }