Skip to content

Commit

Permalink
Make tests pass on PHP5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Blazek committed Jun 29, 2016
1 parent 91e263a commit f011b80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f011b80

Please sign in to comment.