Skip to content

Commit 1f6fe1a

Browse files
committed
fix tests for new version of test server
1 parent 3075e41 commit 1f6fe1a

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
@@ -54,7 +54,10 @@ public function log($level, $message, array $context = []): void
5454

5555
$responseContentJson = $this->fromJson($context['response']->getContent());
5656
if ($responseContentJson !== null) {
57-
$log['response-content-json'] = $responseContentJson;
57+
$log['response-content-json'] = array_filter($responseContentJson,
58+
function ($key) {
59+
return !in_array($key, ['REMOTE_ADDR', 'REMOTE_PORT',]);
60+
}, ARRAY_FILTER_USE_KEY);
5861
}
5962

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

0 commit comments

Comments
 (0)