Skip to content

Commit 4101a1d

Browse files
committed
fix tests for new version of test server
1 parent 68614b7 commit 4101a1d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/TestLogger.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ public function log($level, string|\Stringable $message, array $context = []): v
4646

4747
$responseContentJson = $this->fromJson($context['response']->getContent());
4848
if ($responseContentJson !== null) {
49-
$log['response-content-json'] = $responseContentJson;
49+
$log['response-content-json'] = array_filter($responseContentJson,
50+
function ($key) {
51+
return !in_array($key, ['REMOTE_ADDR', 'REMOTE_PORT',]);
52+
}, ARRAY_FILTER_USE_KEY);
5053
}
5154

5255
$responseStreamContent = $this->getContentFromStream($context['response']->toStream());

0 commit comments

Comments
 (0)