File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function testRequestLogsAtConfiguredLevel(): void
2727 ->with (
2828 'info ' ,
2929 '{method} {url} {status_code} {duration}ms ' ,
30- $ this ->callback (fn (array $ context ) => 'GET ' === $ context ['method ' ]
30+ $ this ->callback (fn (array $ context ) => 'GET ' === $ context ['method ' ]
3131 && 'https://example.com/api ' === $ context ['url ' ]
3232 && 200 === $ context ['status_code ' ]
3333 && is_float ($ context ['duration ' ]))
@@ -73,7 +73,7 @@ public function testRequestLogsErrorOnTransportException(): void
7373 ->method ('error ' )
7474 ->with (
7575 '{method} {url} failed after {duration}ms: {error} ' ,
76- $ this ->callback (fn (array $ context ) => 'POST ' === $ context ['method ' ]
76+ $ this ->callback (fn (array $ context ) => 'POST ' === $ context ['method ' ]
7777 && 'https://example.com/fail ' === $ context ['url ' ]
7878 && 'Connection refused ' === $ context ['error ' ]
7979 && is_float ($ context ['duration ' ]))
@@ -150,7 +150,7 @@ public function testNon2xxStatusCodeIsStillLogged(): void
150150 ->with (
151151 'info ' ,
152152 '{method} {url} {status_code} {duration}ms ' ,
153- $ this ->callback (fn (array $ context ) => 500 === $ context ['status_code ' ])
153+ $ this ->callback (fn (array $ context ) => 500 === $ context ['status_code ' ])
154154 );
155155
156156 $ client = new LoggingHttpClient ($ inner , $ logger , 'info ' );
You can’t perform that action at this time.
0 commit comments