mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-13 00:24:10 +02:00
Changed the FormatterInterface to return only the formatted message and added a batch formatting method
This commit is contained in:
@@ -36,7 +36,7 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
$formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
|
||||
$formatter->expects($this->any())
|
||||
->method('format')
|
||||
->will($this->returnArgument(0));
|
||||
->will($this->returnCallback(function($record) { return $record['message']; }));
|
||||
|
||||
return $formatter;
|
||||
}
|
||||
|
Reference in New Issue
Block a user