From 607ce1d4005af32dd866c4a402459494c168d555 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 25 Sep 2016 15:41:54 +0200 Subject: [PATCH] Fix phpunit compatibility --- Psr/Log/Test/LoggerInterfaceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Psr/Log/Test/LoggerInterfaceTest.php b/Psr/Log/Test/LoggerInterfaceTest.php index f66a2b0..a0391a5 100644 --- a/Psr/Log/Test/LoggerInterfaceTest.php +++ b/Psr/Log/Test/LoggerInterfaceTest.php @@ -84,8 +84,8 @@ public function testContextReplacement() public function testObjectCastToString() { - if (method_exists($this, 'createMock')) { - $dummy = $this->createMock('Psr\Log\Test\DummyTest', array('__toString')); + if (method_exists($this, 'createPartialMock')) { + $dummy = $this->createPartialMock('Psr\Log\Test\DummyTest', array('__toString')); } else { $dummy = $this->getMock('Psr\Log\Test\DummyTest', array('__toString')); }