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