Skip to content

Commit

Permalink
Suppress unlink error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zbateson committed Apr 15, 2024
1 parent a626bad commit b864c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/setup-test-logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function mmpGetTestLogger() : Logger {
if ($logger === null) {
$logger = new Logger('testing');
$logger->pushProcessor(new PsrLogMessageProcessor(removeUsedContextFields: true));
\unlink(__DIR__ . '/' . TEST_LOG_FILE);
@\unlink(__DIR__ . '/' . TEST_LOG_FILE);
$logger->pushHandler(new StreamHandler(__DIR__ . '/' . TEST_LOG_FILE, 'debug'));
$logger->pushHandler(mmpGetAndClearTestHandler());
}
Expand Down

0 comments on commit b864c0e

Please sign in to comment.