summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-06-16 13:30:52 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-06-16 18:36:58 +0200
commit891c10d09da333e6af172bacd0c28540fd7a7032 (patch)
tree93e3093f9cffe1dac18bbb43e83fa17dd31fde22 /tests/lib
parent09a5947a6dbfafc90ca343a5f48c192d29bd9924 (diff)
downloadnextcloud-server-891c10d09da333e6af172bacd0c28540fd7a7032.tar.gz
nextcloud-server-891c10d09da333e6af172bacd0c28540fd7a7032.zip
fix overwriting original vars when logging
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Log/ExceptionSerializerTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/Log/ExceptionSerializerTest.php b/tests/lib/Log/ExceptionSerializerTest.php
index 1b7bfee2c87..f8cc6b77ee6 100644
--- a/tests/lib/Log/ExceptionSerializerTest.php
+++ b/tests/lib/Log/ExceptionSerializerTest.php
@@ -60,8 +60,9 @@ class ExceptionSerializerTest extends TestCase {
$secret = ['Secret'];
$this->emit([&$secret]);
} catch (\Exception $e) {
- $this->serializer->serializeException($e);
+ $serializedData = $this->serializer->serializeException($e);
$this->assertSame(['Secret'], $secret);
+ $this->assertSame('*** sensitive parameters replaced ***', $serializedData['Trace'][0]['args'][0]);
}
}
}