Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Jul 4, 2016
1 parent 59ae0a6 commit acdbd7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/Logger/DbalLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class DbalLoggerTest extends \PHPUnit_Framework_TestCase
*/
public function testLog($sql, $params, $logParams)
{
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
$logger = $this->getMockForAbstractClass('Psr\\Log\\LoggerInterface');

$dbalLogger = $this
->getMockBuilder('Saxulum\\SaxulumWebProfiler\\Logger\\DbalLogger')
Expand Down Expand Up @@ -49,7 +49,7 @@ public function getLogFixtures()

public function testLogNonUtf8()
{
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
$logger = $this->getMockForAbstractClass('Psr\\Log\\LoggerInterface');

$dbalLogger = $this
->getMockBuilder('Saxulum\\SaxulumWebProfiler\\Logger\\DbalLogger')
Expand All @@ -72,7 +72,7 @@ public function testLogNonUtf8()

public function testLogLongString()
{
$logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
$logger = $this->getMockForAbstractClass('Psr\\Log\\LoggerInterface');

$dbalLogger = $this
->getMockBuilder('Saxulum\\SaxulumWebProfiler\\Logger\\DbalLogger')
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testLogUTF8LongString()
$this->markTestSkipped('Testing log shortening of utf8 charsets requires the mb_detect_encoding() function.');
}

$logger = $this->getMock('Symfony\\Component\\HttpKernel\\Log\\LoggerInterface');
$logger = $this->getMockForAbstractClass('Psr\\Log\\LoggerInterface');

$dbalLogger = $this
->getMockBuilder('Saxulum\\SaxulumWebProfiler\\Logger\\DbalLogger')
Expand Down
2 changes: 1 addition & 1 deletion tests/Logger/DoctrineMongoDbLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DoctrineMongoDbLoggerTest extends \PHPUnit_Framework_TestCase

protected function setUp()
{
$this->logger = $this->getMock('Symfony\Component\HttpKernel\Log\LoggerInterface');
$this->logger = $this->getMockForAbstractClass('Psr\\Log\\LoggerInterface');
}

protected function tearDown()
Expand Down

0 comments on commit acdbd7a

Please sign in to comment.