From d34de6bf302df3e818c1facb7b55af49f9b8131b Mon Sep 17 00:00:00 2001 From: Anton Nizhegorodov Date: Mon, 14 Nov 2016 03:33:04 +0200 Subject: [PATCH] Fix SlackRecordTest --- tests/Monolog/Handler/Slack/SlackRecordTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Monolog/Handler/Slack/SlackRecordTest.php b/tests/Monolog/Handler/Slack/SlackRecordTest.php index 31a68db2..351b92d3 100644 --- a/tests/Monolog/Handler/Slack/SlackRecordTest.php +++ b/tests/Monolog/Handler/Slack/SlackRecordTest.php @@ -11,7 +11,6 @@ namespace Monolog\Handler\Slack; -use Monolog\Formatter\FormatterInterface; use Monolog\Logger; use Monolog\TestCase; @@ -175,13 +174,13 @@ class SlackRecordTest extends TestCase public function testTextEqualsFormatterOutput() { - $formatter = $this->createMock(FormatterInterface::class); + $formatter = $this->getMock('Monolog\\Formatter\\FormatterInterface'); $formatter ->expects($this->any()) ->method('format') ->will($this->returnCallback(function ($record) { return $record['message'] . 'test'; })); - $formatter2 = $this->createMock(FormatterInterface::class); + $formatter2 = $this->getMock('Monolog\\Formatter\\FormatterInterface'); $formatter2 ->expects($this->any()) ->method('format')