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