mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
Fix SlackRecordTest
This commit is contained in:
committed by
Haralan Dobrev
parent
1303dc6d72
commit
d34de6bf30
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Monolog\Handler\Slack;
|
namespace Monolog\Handler\Slack;
|
||||||
|
|
||||||
use Monolog\Formatter\FormatterInterface;
|
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use Monolog\TestCase;
|
use Monolog\TestCase;
|
||||||
|
|
||||||
@@ -175,13 +174,13 @@ class SlackRecordTest extends TestCase
|
|||||||
|
|
||||||
public function testTextEqualsFormatterOutput()
|
public function testTextEqualsFormatterOutput()
|
||||||
{
|
{
|
||||||
$formatter = $this->createMock(FormatterInterface::class);
|
$formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface');
|
||||||
$formatter
|
$formatter
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('format')
|
->method('format')
|
||||||
->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; }));
|
->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; }));
|
||||||
|
|
||||||
$formatter2 = $this->createMock(FormatterInterface::class);
|
$formatter2 = $this->getMock('Monolog\\Formatter\\FormatterInterface');
|
||||||
$formatter2
|
$formatter2
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('format')
|
->method('format')
|
||||||
|
Reference in New Issue
Block a user