Skip to content
Permalink
Browse files

Fix reasonPhrase having a default value that matches the status code.

  • Loading branch information...
markstory committed Jan 2, 2017
1 parent 30fc500 commit 9e7a0c1be2a5df15df1e6a7d0e04d373d0501336
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/TestCase/Network/ResponseTest.php
@@ -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);

0 comments on commit 9e7a0c1

Please sign in to comment.
You can’t perform that action at this time.