Use camel case

parent d6f232e4
......@@ -47,7 +47,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
$handler = static function () : bool {
self::fail('Never expected this to be called');
};
$default_handler = set_error_handler($handler);
$defaultHandler = set_error_handler($handler);
try {
new MysqliConnection(['host' => '255.255.255.255'], 'user', 'pass');
......@@ -56,7 +56,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
self::assertSame('Network is unreachable', $e->getMessage());
}
self::assertSame($handler, set_error_handler($default_handler), 'Restoring error handler failed.');
self::assertSame($handler, set_error_handler($defaultHandler), 'Restoring error handler failed.');
restore_error_handler();
restore_error_handler();
}
......
......@@ -128,9 +128,9 @@ class ResultCacheTest extends DbalFunctionalTestCase
$data = $this->hydrateStmt($stmt, $fetchMode);
$stmt = $this->connection->executeQuery('SELECT * FROM caching ORDER BY test_int ASC', [], [], new QueryCacheProfile(10, 'testcachekey'));
$data_iterator = $this->hydrateStmtIterator($stmt, $fetchMode);
$dataIterator = $this->hydrateStmtIterator($stmt, $fetchMode);
self::assertEquals($data, $data_iterator);
self::assertEquals($data, $dataIterator);
}
public function testDontCloseNoCache() : void
......
......@@ -792,14 +792,14 @@ class QueryBuilderTest extends DbalTestCase
$qb->setParameter(':test', (object) 1);
$qb_clone = clone $qb;
$qbClone = clone $qb;
self::assertEquals((string) $qb, (string) $qb_clone);
self::assertEquals((string) $qb, (string) $qbClone);
$qb->andWhere('u.id = 1');
self::assertNotSame($qb->getQueryParts(), $qb_clone->getQueryParts());
self::assertNotSame($qb->getParameters(), $qb_clone->getParameters());
self::assertNotSame($qb->getQueryParts(), $qbClone->getQueryParts());
self::assertNotSame($qb->getParameters(), $qbClone->getParameters());
}
public function testSimpleSelectWithoutTableAlias() : void
......
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