From f011b804d284eb4686ccd974019544241a23a659 Mon Sep 17 00:00:00 2001 From: Mario Blazek Date: Wed, 29 Jun 2016 21:50:34 +0200 Subject: [PATCH] Make tests pass on PHP5.5 --- .../Twig/Extension/NetgenOpenGraphExtensionTest.php | 5 ++++- .../Twig/Extension/NetgenOpenGraphExtensionTwigTest.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTest.php b/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTest.php index 4914957..0c8fcdd 100644 --- a/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTest.php +++ b/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTest.php @@ -44,7 +44,10 @@ public function setUp() ->setMethods(array('render')) ->getMock(); - $this->logger = $this->createMock(NullLogger::class); + $this->logger = $this->getMockBuilder(NullLogger::class) + ->disableOriginalConstructor() + ->setMethods(array('error')) + ->getMock(); $this->extension = new NetgenOpenGraphExtension($this->collector, $this->renderer, $this->logger); } diff --git a/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTwigTest.php b/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTwigTest.php index 9fb2161..5206e2a 100644 --- a/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTwigTest.php +++ b/Tests/Templating/Twig/Extension/NetgenOpenGraphExtensionTwigTest.php @@ -58,7 +58,10 @@ public function setUp() $this->renderer->method('render') ->willReturn($html); - $this->logger = $this->createMock(NullLogger::class); + $this->logger = $this->getMockBuilder(NullLogger::class) + ->disableOriginalConstructor() + ->setMethods(array('error')) + ->getMock(); $this->extension = new NetgenOpenGraphExtension($this->collector, $this->renderer, $this->logger); }