Commit db3a648f authored by Christopher Davis's avatar Christopher Davis Committed by Steve Müller

Fix Up Some Tests to ::class & self::{once,equalTo}

parent cd97dd8b
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace Doctrine\Tests\DBAL; namespace Doctrine\Tests\DBAL;
use Doctrine\DBAL\Statement; use Doctrine\DBAL\Statement;
use Doctrine\DBAL\Logging\SQLLogger;
class StatementTest extends \Doctrine\Tests\DbalTestCase class StatementTest extends \Doctrine\Tests\DbalTestCase
{ {
...@@ -107,10 +108,10 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase ...@@ -107,10 +108,10 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase
$types = array($name => \PDO::PARAM_STR); $types = array($name => \PDO::PARAM_STR);
$sql = ''; $sql = '';
$logger = $this->createMock('\Doctrine\DBAL\Logging\SQLLogger'); $logger = $this->createMock(SQLLogger::class);
$logger->expects($this->once()) $logger->expects(self::once())
->method('startQuery') ->method('startQuery')
->with($this->equalTo($sql), $this->equalTo($values), $this->equalTo($types)); ->with(self::equalTo($sql), self::equalTo($values), self::equalTo($types));
$this->configuration->expects($this->once()) $this->configuration->expects($this->once())
->method('getSQLLogger') ->method('getSQLLogger')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment