Skip to content

Commit cd65126

Browse files
committed
test Logger::determineFile() for no stack trace
1 parent e1453a8 commit cd65126

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/system/Log/LoggerTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,18 @@ public function testFilenameCleaning()
419419
$this->assertEquals($expected, $logger->cleanup($ohoh));
420420
}
421421

422+
//--------------------------------------------------------------------
423+
424+
public function testDetermineFileNoStackTrace()
425+
{
426+
$config = new LoggerConfig();
427+
$logger = new Logger($config);
428+
429+
$expected = [
430+
'unknown',
431+
'unknown',
432+
];
433+
434+
$this->assertEquals($expected, $logger->determineFile());
435+
}
422436
}

0 commit comments

Comments
 (0)