diff --git a/src/Monolog/Test/TestCase.php b/src/Monolog/Test/TestCase.php index 98204a95..29ec7c96 100644 --- a/src/Monolog/Test/TestCase.php +++ b/src/Monolog/Test/TestCase.php @@ -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; }