Added assert for the reason phrase because I noticed it was empty for 405 earlier in testing.

This commit is contained in:
flash 2025-03-07 00:32:06 +00:00
parent 956cfd1a63
commit a5f9e9121d
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1 @@
0.2503.70022
0.2503.70031

View file

@ -155,6 +155,7 @@ final class RouterTest extends TestCase {
$response = $router->handle(new HttpRequest('1.1', [], NullStream::instance(), [], 'OPTIONS', HttpUri::createUri('/test'), [], []));
$this->assertEquals(204, $response->getStatusCode());
$this->assertEquals('No Content', $response->getReasonPhrase());
$this->assertEquals('GET, HEAD, OPTIONS, PATCH, POST', $response->getHeaderLine('Allow'));
}
}