Commit 4a1391be authored by Christopher Davis's avatar Christopher Davis

Short Array Notation & Current PHPUnit Usage

parent 77e9eca9
...@@ -108,8 +108,8 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase ...@@ -108,8 +108,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);
...@@ -117,9 +117,9 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase ...@@ -117,9 +117,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