Use the original case in method calls

parent 300a8e59
...@@ -291,7 +291,7 @@ class OCI8Statement implements IteratorAggregate, Statement ...@@ -291,7 +291,7 @@ class OCI8Statement implements IteratorAggregate, Statement
$class = 'OCI-Lob'; $class = 'OCI-Lob';
assert($lob instanceof $class); assert($lob instanceof $class);
$lob->writeTemporary($variable, OCI_TEMP_BLOB); $lob->writetemporary($variable, OCI_TEMP_BLOB);
$variable =& $lob; $variable =& $lob;
} }
......
...@@ -227,7 +227,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -227,7 +227,7 @@ class SqlitePlatform extends AbstractPlatform
* *
* @return string * @return string
*/ */
public function getTinyIntTypeDeclarationSql(array $field) public function getTinyIntTypeDeclarationSQL(array $field)
{ {
// SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields. // SQLite autoincrement is implicit for INTEGER PKs, but not for TINYINT fields.
if (! empty($field['autoincrement'])) { if (! empty($field['autoincrement'])) {
...@@ -255,7 +255,7 @@ class SqlitePlatform extends AbstractPlatform ...@@ -255,7 +255,7 @@ class SqlitePlatform extends AbstractPlatform
* *
* @return string * @return string
*/ */
public function getMediumIntTypeDeclarationSql(array $field) public function getMediumIntTypeDeclarationSQL(array $field)
{ {
// SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields. // SQLite autoincrement is implicit for INTEGER PKs, but not for MEDIUMINT fields.
if (! empty($field['autoincrement'])) { if (! empty($field['autoincrement'])) {
......
...@@ -111,7 +111,7 @@ class ConnectionTest extends FunctionalTestCase ...@@ -111,7 +111,7 @@ class ConnectionTest extends FunctionalTestCase
$connection->beginTransaction(); $connection->beginTransaction();
$connection->executeQuery('insert into test_nesting values (33)'); $connection->executeQuery('insert into test_nesting values (33)');
$connection->rollback(); $connection->rollBack();
self::assertEquals(0, $connection->fetchColumn('select count(*) from test_nesting')); self::assertEquals(0, $connection->fetchColumn('select count(*) from test_nesting'));
} }
......
...@@ -281,11 +281,11 @@ abstract class SchemaManagerFunctionalTestCase extends FunctionalTestCase ...@@ -281,11 +281,11 @@ abstract class SchemaManagerFunctionalTestCase extends FunctionalTestCase
self::assertArrayHasKey('id', $columns); self::assertArrayHasKey('id', $columns);
self::assertEquals(0, array_search('id', $columnsKeys)); self::assertEquals(0, array_search('id', $columnsKeys));
self::assertEquals('id', strtolower($columns['id']->getname())); self::assertEquals('id', strtolower($columns['id']->getName()));
self::assertInstanceOf(IntegerType::class, $columns['id']->gettype()); self::assertInstanceOf(IntegerType::class, $columns['id']->getType());
self::assertEquals(false, $columns['id']->getunsigned()); self::assertEquals(false, $columns['id']->getUnsigned());
self::assertEquals(true, $columns['id']->getnotnull()); self::assertEquals(true, $columns['id']->getNotnull());
self::assertEquals(null, $columns['id']->getdefault()); self::assertEquals(null, $columns['id']->getDefault());
self::assertIsArray($columns['id']->getPlatformOptions()); self::assertIsArray($columns['id']->getPlatformOptions());
self::assertArrayHasKey('test', $columns); self::assertArrayHasKey('test', $columns);
......
...@@ -199,8 +199,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa ...@@ -199,8 +199,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
{ {
$table = new Table('autoinc_table_notnull'); $table = new Table('autoinc_table_notnull');
$column = $table->addColumn('id', $type); $column = $table->addColumn('id', $type);
$column->setAutoIncrement(true); $column->setAutoincrement(true);
$column->setNotNull(false); $column->setNotnull(false);
$sql = $this->platform->getCreateTableSQL($table); $sql = $this->platform->getCreateTableSQL($table);
...@@ -215,8 +215,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa ...@@ -215,8 +215,8 @@ abstract class AbstractPostgreSQLPlatformTestCase extends AbstractPlatformTestCa
{ {
$table = new Table('autoinc_table_notnull_enabled'); $table = new Table('autoinc_table_notnull_enabled');
$column = $table->addColumn('id', $type); $column = $table->addColumn('id', $type);
$column->setAutoIncrement(true); $column->setAutoincrement(true);
$column->setNotNull(true); $column->setNotnull(true);
$sql = $this->platform->getCreateTableSQL($table); $sql = $this->platform->getCreateTableSQL($table);
......
...@@ -447,7 +447,7 @@ class SQLAnywhere16PlatformTest extends AbstractPlatformTestCase ...@@ -447,7 +447,7 @@ class SQLAnywhere16PlatformTest extends AbstractPlatformTestCase
{ {
$this->expectException(InvalidArgumentException::class); $this->expectException(InvalidArgumentException::class);
$this->platform->getForeignKeyMatchCLauseSQL(3); $this->platform->getForeignKeyMatchClauseSQL(3);
} }
public function testCannotGenerateForeignKeyConstraintSQLWithEmptyLocalColumns() : void public function testCannotGenerateForeignKeyConstraintSQLWithEmptyLocalColumns() : void
......
...@@ -23,7 +23,7 @@ class ColumnTest extends TestCase ...@@ -23,7 +23,7 @@ class ColumnTest extends TestCase
self::assertEquals(5, $column->getPrecision()); self::assertEquals(5, $column->getPrecision());
self::assertEquals(2, $column->getScale()); self::assertEquals(2, $column->getScale());
self::assertTrue($column->getUnsigned()); self::assertTrue($column->getUnsigned());
self::assertFalse($column->getNotNull()); self::assertFalse($column->getNotnull());
self::assertTrue($column->getFixed()); self::assertTrue($column->getFixed());
self::assertEquals('baz', $column->getDefault()); self::assertEquals('baz', $column->getDefault());
......
...@@ -28,7 +28,7 @@ class StringTest extends TestCase ...@@ -28,7 +28,7 @@ class StringTest extends TestCase
->method('getVarcharTypeDeclarationSQL') ->method('getVarcharTypeDeclarationSQL')
->willReturn('TEST_VARCHAR'); ->willReturn('TEST_VARCHAR');
self::assertEquals('TEST_VARCHAR', $this->type->getSqlDeclaration([], $this->platform)); self::assertEquals('TEST_VARCHAR', $this->type->getSQLDeclaration([], $this->platform));
} }
public function testReturnsDefaultLengthFromPlatformVarchar() : void public function testReturnsDefaultLengthFromPlatformVarchar() : 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