diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-06-16 14:30:52 +0300 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2022-06-16 21:38:39 +0300 |
commit | ed4fcf2d17c60a8c3c8da9758063a95326df86a8 (patch) | |
tree | 985f629641b259fad68a7b823d524046eb647f85 /tests/lib | |
parent | fc2a88197f7119f7d729982deeee19a8ba18f393 (diff) |
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.php | 3 |
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]); } } } |