Skip to content

Commit

Permalink
Fix phpunit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Sep 25, 2016
1 parent 5277094 commit 607ce1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Psr/Log/Test/LoggerInterfaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit 607ce1d

Please sign in to comment.