Skip to content

Commit 9e7a0c1

Browse files
committed
Fix reasonPhrase having a default value that matches the status code.
1 parent 30fc500 commit 9e7a0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestCase/Network/ResponseTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,8 +2742,8 @@ public function testWithStatusCode()
27422742
public function testGetReasonPhrase()
27432743
{
27442744
$response = new Response();
2745-
$reasonPhrase = $response->getReasonPhrase();
2746-
$this->assertNull($reasonPhrase);
2745+
$this->assertSame('OK', $response->getReasonPhrase());
2746+
27472747
$response = $response->withStatus(404);
27482748
$reasonPhrase = $response->getReasonPhrase();
27492749
$this->assertEquals('Not Found', $reasonPhrase);

0 commit comments

Comments
 (0)