Skip to content

Commit

Permalink
Fix reasonPhrase having a default value that matches the status code.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 2, 2017
1 parent 30fc500 commit 9e7a0c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TestCase/Network/ResponseTest.php
Expand Up @@ -2742,8 +2742,8 @@ public function testWithStatusCode()
public function testGetReasonPhrase()
{
$response = new Response();
$reasonPhrase = $response->getReasonPhrase();
$this->assertNull($reasonPhrase);
$this->assertSame('OK', $response->getReasonPhrase());

$response = $response->withStatus(404);
$reasonPhrase = $response->getReasonPhrase();
$this->assertEquals('Not Found', $reasonPhrase);
Expand Down

0 comments on commit 9e7a0c1

Please sign in to comment.