diff --git a/tests/system/Log/LoggerTest.php b/tests/system/Log/LoggerTest.php index 965dd130634b..a35d1eae6ded 100644 --- a/tests/system/Log/LoggerTest.php +++ b/tests/system/Log/LoggerTest.php @@ -419,4 +419,18 @@ public function testFilenameCleaning() $this->assertEquals($expected, $logger->cleanup($ohoh)); } + //-------------------------------------------------------------------- + + public function testDetermineFileNoStackTrace() + { + $config = new LoggerConfig(); + $logger = new Logger($config); + + $expected = [ + 'unknown', + 'unknown', + ]; + + $this->assertEquals($expected, $logger->determineFile()); + } }