Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
Use 199 now that 499 is a valid status code.
  • Loading branch information
akrabat committed Oct 14, 2016
1 parent 343b939 commit ac7717c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Http/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ public function testGetReasonPhrase()
public function testMustSetReasonPhraseForUnrecognisedCode()
{
$response = new Response();
$response = $response->withStatus(499);
$response = $response->withStatus(199);
}

public function testSetReasonPhraseForUnrecognisedCode()
{
$response = new Response();
$response = $response->withStatus(499, 'Authentication timeout');
$response = $response->withStatus(199, 'Random Message');

$this->assertEquals('Authentication timeout', $response->getReasonPhrase());
$this->assertEquals('Random Message', $response->getReasonPhrase());
}

public function testGetCustomReasonPhrase()
Expand Down

0 comments on commit ac7717c

Please sign in to comment.