Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if getReasonPhrase returns empty message #1884

Merged
merged 1 commit into from
May 19, 2016

Conversation

dopesong
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 93.664% when pulling 1e26aef on dopesong:response-status-phrase-test into 794073a on slimphp:3.x.

@akrabat akrabat added this to the 3.5.0 milestone May 19, 2016
$responseStatus = new ReflectionProperty($response, 'status');
$responseStatus->setAccessible(true);
$responseStatus->setValue($response, '404');

$this->assertEquals('Not Found', $response->getReasonPhrase());
$this->assertEquals('', $responseWithNoMessage->getReasonPhrase());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this one as it's own test method.
Also, why does the 404 test use Reflection to set the Status?!

@dopesong dopesong force-pushed the response-status-phrase-test branch from 1e26aef to b7a2f57 Compare May 19, 2016 06:53
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 95.797% when pulling b7a2f57 on dopesong:response-status-phrase-test into 55a5945 on slimphp:3.x.

@akrabat akrabat merged commit b7a2f57 into slimphp:3.x May 19, 2016
akrabat added a commit that referenced this pull request May 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants