Skip to content

Commit

Permalink
Merge pull request #2795 from samsonasik/test-logger-determine-file-n…
Browse files Browse the repository at this point in the history
…o-stack-trace

test Logger::determineFile() for no stack trace
  • Loading branch information
MGatner authored Apr 6, 2020
2 parents 2a2cd57 + cd65126 commit 34f21ba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/system/Log/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 34f21ba

Please sign in to comment.