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

Short Array Notation & Current PHPUnit Usage

parent db3a648f
...@@ -104,8 +104,8 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase ...@@ -104,8 +104,8 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase
{ {
$name = 'foo'; $name = 'foo';
$var = 'bar'; $var = 'bar';
$values = array($name => $var); $values = [$name => $var];
$types = array($name => \PDO::PARAM_STR); $types = [$name => \PDO::PARAM_STR];
$sql = ''; $sql = '';
$logger = $this->createMock(SQLLogger::class); $logger = $this->createMock(SQLLogger::class);
...@@ -113,9 +113,9 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase ...@@ -113,9 +113,9 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase
->method('startQuery') ->method('startQuery')
->with(self::equalTo($sql), self::equalTo($values), self::equalTo($types)); ->with(self::equalTo($sql), self::equalTo($values), self::equalTo($types));
$this->configuration->expects($this->once()) $this->configuration->expects(self::once())
->method('getSQLLogger') ->method('getSQLLogger')
->will($this->returnValue($logger)); ->willReturn($logger);
$statement = new Statement($sql, $this->conn); $statement = new Statement($sql, $this->conn);
$statement->bindParam($name, $var); $statement->bindParam($name, $var);
......
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