File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private function linkIsValid($link)
73
73
return $ resp ->getStatusCode () < 400 ;
74
74
}
75
75
76
- private function str (MessageInterface $ message )
76
+ public function str (MessageInterface $ message )
77
77
{
78
78
if ($ message instanceof RequestInterface) {
79
79
$ msg = trim ($ message ->getMethod () . ' '
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ public function test_it_builds_http_errors()
35
35
$ request = new Request ('POST ' , '/servers ' );
36
36
$ response = new Response (400 , [], stream_for ('Invalid parameters ' ));
37
37
38
- $ requestStr = trim (str ($ request ));
39
- $ responseStr = trim (str ($ response ));
38
+ $ requestStr = trim ($ this -> builder -> str ($ request ));
39
+ $ responseStr = trim ($ this -> builder -> str ($ response ));
40
40
41
41
$ errorMessage = <<<EOT
42
42
HTTP Error
You can’t perform that action at this time.
0 commit comments