|
@@ -73,9 +73,9 @@ class TestCase extends \PHPUnit\Framework\TestCase
|
|
|
$formatter = $this->createMock(FormatterInterface::class);
|
|
$formatter = $this->createMock(FormatterInterface::class);
|
|
|
$formatter->expects(self::any())
|
|
$formatter->expects(self::any())
|
|
|
->method('format')
|
|
->method('format')
|
|
|
- ->will(self::returnCallback(function ($record) {
|
|
|
|
|
|
|
+ ->willReturnCallback(function ($record) {
|
|
|
return $record->message;
|
|
return $record->message;
|
|
|
- }));
|
|
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
return $formatter;
|
|
return $formatter;
|
|
|
}
|
|
}
|