mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 20:57:36 +02:00
Remove usage of soft-deprecated PHPUnit API (#1848)
This commit is contained in:
committed by
GitHub
parent
e545d0f444
commit
add8b2a49f
@@ -73,9 +73,9 @@ class TestCase extends \PHPUnit\Framework\TestCase
|
||||
$formatter = $this->createMock(FormatterInterface::class);
|
||||
$formatter->expects(self::any())
|
||||
->method('format')
|
||||
->will(self::returnCallback(function ($record) {
|
||||
->willReturnCallback(function ($record) {
|
||||
return $record->message;
|
||||
}));
|
||||
});
|
||||
|
||||
return $formatter;
|
||||
}
|
||||
|
Reference in New Issue
Block a user