Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit f4e3f0b

Browse files
committed
Updated test setup to ensure behavior under test is correct
`ResponseTest::testReasonPhraseCanBeEmpty()` was using status 599 as, prior to #208, no default reason phrase was provided in `Response` for that code. Now that there is, we need to use a different one. Updated to 555, as it is not currently reserved.
1 parent a4d1c5b commit f4e3f0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testInvalidStatusCodeInConstructor()
167167

168168
public function testReasonPhraseCanBeEmpty()
169169
{
170-
$response = $this->response->withStatus(599);
170+
$response = $this->response->withStatus(555);
171171
$this->assertInternalType('string', $response->getReasonPhrase());
172172
$this->assertEmpty($response->getReasonPhrase());
173173
}

0 commit comments

Comments
 (0)