Added assert for the reason phrase because I noticed it was empty for 405 earlier in testing.
This commit is contained in:
parent
956cfd1a63
commit
a5f9e9121d
2 changed files with 2 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.2503.70022
|
0.2503.70031
|
||||||
|
|
|
@ -155,6 +155,7 @@ final class RouterTest extends TestCase {
|
||||||
|
|
||||||
$response = $router->handle(new HttpRequest('1.1', [], NullStream::instance(), [], 'OPTIONS', HttpUri::createUri('/test'), [], []));
|
$response = $router->handle(new HttpRequest('1.1', [], NullStream::instance(), [], 'OPTIONS', HttpUri::createUri('/test'), [], []));
|
||||||
$this->assertEquals(204, $response->getStatusCode());
|
$this->assertEquals(204, $response->getStatusCode());
|
||||||
|
$this->assertEquals('No Content', $response->getReasonPhrase());
|
||||||
$this->assertEquals('GET, HEAD, OPTIONS, PATCH, POST', $response->getHeaderLine('Allow'));
|
$this->assertEquals('GET, HEAD, OPTIONS, PATCH, POST', $response->getHeaderLine('Allow'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue