mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +02:00
Remove empty lines if a custom stack trace parser returns null, fixes #1925
This commit is contained in:
@@ -193,10 +193,9 @@ class LineFormatterTest extends TestCase
|
||||
});
|
||||
|
||||
$message = $formatter->format($this->getRecord(Level::Critical, context: ['exception' => new \RuntimeException('Foo')]));
|
||||
|
||||
$trace = explode('[stacktrace]', $message, 2)[1];
|
||||
|
||||
$this->assertStringNotContainsString('#', $trace);
|
||||
$this->assertSame(PHP_EOL . PHP_EOL . '"} []' . PHP_EOL, $trace);
|
||||
}
|
||||
|
||||
public function testDefFormatWithPreviousException()
|
||||
|
Reference in New Issue
Block a user