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