Skip to content

Commit 15f2131

Browse files
author
Jamie Hannaford
committed
fix resp body
1 parent 7642f83 commit 15f2131

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Common/Error/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private function linkIsValid($link)
7373
return $resp->getStatusCode() < 400;
7474
}
7575

76-
private function str(MessageInterface $message)
76+
public function str(MessageInterface $message)
7777
{
7878
if ($message instanceof RequestInterface) {
7979
$msg = trim($message->getMethod() . ' '

tests/unit/Common/Error/BuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function test_it_builds_http_errors()
3535
$request = new Request('POST', '/servers');
3636
$response = new Response(400, [], stream_for('Invalid parameters'));
3737

38-
$requestStr = trim(str($request));
39-
$responseStr = trim(str($response));
38+
$requestStr = trim($this->builder->str($request));
39+
$responseStr = trim($this->builder->str($response));
4040

4141
$errorMessage = <<<EOT
4242
HTTP Error

0 commit comments

Comments
 (0)