Use the original case in method calls

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