Skip to content

Commit

Permalink
fix resp body
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Hannaford committed Jan 19, 2016
1 parent 7642f83 commit 15f2131
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Common/Error/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private function linkIsValid($link)
return $resp->getStatusCode() < 400;
}

private function str(MessageInterface $message)
public function str(MessageInterface $message)
{
if ($message instanceof RequestInterface) {
$msg = trim($message->getMethod() . ' '
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Common/Error/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public function test_it_builds_http_errors()
$request = new Request('POST', '/servers');
$response = new Response(400, [], stream_for('Invalid parameters'));

$requestStr = trim(str($request));
$responseStr = trim(str($response));
$requestStr = trim($this->builder->str($request));
$responseStr = trim($this->builder->str($response));

$errorMessage = <<<EOT
HTTP Error
Expand Down

0 comments on commit 15f2131

Please sign in to comment.