1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-20 11:51:32 +02:00

Upgrade to phpunit 10 (#1806)

Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de>
This commit is contained in:
chris
2023-06-20 15:56:11 +02:00
committed by GitHub
parent 50409b8169
commit 8561130215
28 changed files with 106 additions and 85 deletions

View File

@@ -160,15 +160,15 @@ class LineFormatterTest extends TestCase
$trace = explode('[stacktrace]', $message, 2)[1];
$this->assertStringContainsString('TestCase.php', $trace);
$this->assertStringContainsString('TestResult.php', $trace);
$this->assertStringContainsString('TestSuite.php', $trace);
$this->assertStringContainsString('TestRunner.php', $trace);
}
public function testDefFormatWithExceptionAndStacktraceParserCustom()
{
$formatter = new LineFormatter(null, 'Y-m-d');
$formatter->includeStacktraces(true, function ($line) {
if (strpos($line, 'TestCase.php') === false) {
if (strpos($line, 'TestSuite.php') === false) {
return $line;
}
});
@@ -177,8 +177,8 @@ class LineFormatterTest extends TestCase
$trace = explode('[stacktrace]', $message, 2)[1];
$this->assertStringNotContainsString('TestCase.php', $trace);
$this->assertStringContainsString('TestResult.php', $trace);
$this->assertStringNotContainsString('TestSuite.php', $trace);
$this->assertStringContainsString('TestRunner.php', $trace);
}
public function testDefFormatWithExceptionAndStacktraceParserEmpty()