diff --git a/tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php b/tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php index 14b1c988ba0..bbc9d8f4337 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php @@ -533,11 +533,11 @@ public function testDateArithmetics() $this->assertEquals('2010-01-08', date('Y-m-d', strtotime($row['add_weeks'])), "Adding week should end up on 2010-01-08"); $this->assertEquals('2009-12-25', date('Y-m-d', strtotime($row['sub_weeks'])), "Subtracting week should end up on 2009-12-25"); $this->assertEquals('2010-03-01', date('Y-m-d', strtotime($row['add_month'])), "Adding month should end up on 2010-03-01"); - $this->assertEquals('2009-11-01', date('Y-m-d', strtotime($row['sub_month'])), "Substracting month should end up on 2009-11-01"); + $this->assertEquals('2009-11-01', date('Y-m-d', strtotime($row['sub_month'])), "Subtracting month should end up on 2009-11-01"); $this->assertEquals('2010-10-01', date('Y-m-d', strtotime($row['add_quarters'])), "Adding quarters should end up on 2010-04-01"); - $this->assertEquals('2009-04-01', date('Y-m-d', strtotime($row['sub_quarters'])), "Substracting quarters should end up on 2009-10-01"); + $this->assertEquals('2009-04-01', date('Y-m-d', strtotime($row['sub_quarters'])), "Subtracting quarters should end up on 2009-10-01"); $this->assertEquals('2016-01-01', date('Y-m-d', strtotime($row['add_years'])), "Adding years should end up on 2016-01-01"); - $this->assertEquals('2004-01-01', date('Y-m-d', strtotime($row['sub_years'])), "Substracting years should end up on 2004-01-01"); + $this->assertEquals('2004-01-01', date('Y-m-d', strtotime($row['sub_years'])), "Subtracting years should end up on 2004-01-01"); } public function testLocateExpression() diff --git a/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php b/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php index 1d01f8053b6..c63409eba72 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php @@ -56,7 +56,7 @@ public function testTableExistsException() } } - public function testForeignKeyContraintViolationExceptionOnInsert() + public function testForeignKeyConstraintViolationExceptionOnInsert() { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { $this->markTestSkipped("Only fails on platforms with foreign key constraints."); @@ -80,7 +80,7 @@ public function testForeignKeyContraintViolationExceptionOnInsert() $this->tearDownForeignKeyConstraintViolationExceptionTest(); } - public function testForeignKeyContraintViolationExceptionOnUpdate() + public function testForeignKeyConstraintViolationExceptionOnUpdate() { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { $this->markTestSkipped("Only fails on platforms with foreign key constraints."); @@ -104,7 +104,7 @@ public function testForeignKeyContraintViolationExceptionOnUpdate() $this->tearDownForeignKeyConstraintViolationExceptionTest(); } - public function testForeignKeyContraintViolationExceptionOnDelete() + public function testForeignKeyConstraintViolationExceptionOnDelete() { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { $this->markTestSkipped("Only fails on platforms with foreign key constraints."); @@ -128,7 +128,7 @@ public function testForeignKeyContraintViolationExceptionOnDelete() $this->tearDownForeignKeyConstraintViolationExceptionTest(); } - public function testForeignKeyContraintViolationExceptionOnTruncate() + public function testForeignKeyConstraintViolationExceptionOnTruncate() { $platform = $this->_conn->getDatabasePlatform(); diff --git a/tests/Doctrine/Tests/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php b/tests/Doctrine/Tests/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php index da51840c73a..8c654ba4bd3 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php @@ -53,7 +53,7 @@ public function testColumnCollation() $this->assertEquals($collation, $columns[$columnName]->getPlatformOption('collation')); } - public function testDefaultContraints() + public function testDefaultConstraints() { $table = new Table('sqlsrv_default_constraints'); $table->addColumn('no_default', 'string'); @@ -179,7 +179,7 @@ public function testColumnComments() $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); - $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitely quoted columns!')); + $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitly quoted columns!')); $table->addColumn('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!')); $table->addColumn('commented_type', 'object'); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); @@ -197,7 +197,7 @@ public function testColumnComments() $this->assertEquals('0', $columns['comment_float_0']->getComment()); $this->assertEquals('0', $columns['comment_string_0']->getComment()); $this->assertEquals('Doctrine 0wnz you!', $columns['comment']->getComment()); - $this->assertEquals('Doctrine 0wnz comments for explicitely quoted columns!', $columns['comment_quoted']->getComment()); + $this->assertEquals('Doctrine 0wnz comments for explicitly quoted columns!', $columns['comment_quoted']->getComment()); $this->assertEquals('Doctrine 0wnz comments for reserved keyword columns!', $columns['[create]']->getComment()); $this->assertNull($columns['commented_type']->getComment()); $this->assertEquals('Doctrine array type.', $columns['commented_type_with_comment']->getComment()); diff --git a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php index b0917617fc0..9807d066845 100644 --- a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php +++ b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php @@ -83,7 +83,7 @@ public function getReturnsForeignKeyReferentialActionSQL() ); } - public function testGetInvalidtForeignKeyReferentialActionSQL() + public function testGetInvalidForeignKeyReferentialActionSQL() { $this->setExpectedException('InvalidArgumentException'); $this->_platform->getForeignKeyReferentialActionSQL('unknown'); diff --git a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php index 29295c25a08..17ee9e4bcf7 100644 --- a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php +++ b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php @@ -303,7 +303,7 @@ protected function getQuotedColumnInForeignKeySQL() * @dataProvider pgBooleanProvider * * @param string $databaseValue - * @param string $prepareStatementValue + * @param string $preparedStatementValue * @param integer $integerValue * @param boolean $booleanValue */ @@ -338,7 +338,7 @@ public function testConvertBooleanAsLiteralIntegers() * @dataProvider pgBooleanProvider * * @param string $databaseValue - * @param string $prepareStatementValue + * @param string $preparedStatementValue * @param integer $integerValue * @param boolean $booleanValue */ diff --git a/tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php b/tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php index cc59e4a72a2..f20d0a310a3 100644 --- a/tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php +++ b/tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php @@ -529,7 +529,7 @@ public function testGeneratesCreateTableSQLWithColumnComments() $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); - $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitely quoted columns!')); + $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitly quoted columns!')); $table->addColumn('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!')); $table->addColumn('commented_type', 'object'); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); @@ -543,7 +543,7 @@ public function testGeneratesCreateTableSQLWithColumnComments() "EXEC sp_addextendedproperty N'MS_Description', N'0', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', comment_float_0", "EXEC sp_addextendedproperty N'MS_Description', N'0', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', comment_string_0", "EXEC sp_addextendedproperty N'MS_Description', N'Doctrine 0wnz you!', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', comment", - "EXEC sp_addextendedproperty N'MS_Description', N'Doctrine 0wnz comments for explicitely quoted columns!', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', [comment_quoted]", + "EXEC sp_addextendedproperty N'MS_Description', N'Doctrine 0wnz comments for explicitly quoted columns!', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', [comment_quoted]", "EXEC sp_addextendedproperty N'MS_Description', N'Doctrine 0wnz comments for reserved keyword columns!', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', [create]", "EXEC sp_addextendedproperty N'MS_Description', N'(DC2Type:object)', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', commented_type", "EXEC sp_addextendedproperty N'MS_Description', N'Doctrine array type.(DC2Type:array)', N'SCHEMA', dbo, N'TABLE', mytable, N'COLUMN', commented_type_with_comment", @@ -568,7 +568,7 @@ public function testGeneratesAlterTableSQLWithColumnComments() $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); - $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitely quoted columns!')); + $table->addColumn('`comment_quoted`', 'integer', array('comment' => 'Doctrine 0wnz comments for explicitly quoted columns!')); $table->addColumn('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!')); $table->addColumn('commented_type', 'object'); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); diff --git a/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php b/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php index e8d6facff3f..dd346a5d8d6 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php @@ -570,7 +570,7 @@ public function testTablesCaseInsensitive() $this->assertSchemaTableChangeCount($diff, 1, 0, 1); } - public function testSequencesCaseInsenstive() + public function testSequencesCaseInsensitive() { $schemaA = new Schema(); $schemaA->createSequence('foo'); @@ -680,7 +680,7 @@ public function testDetectRenameColumn() } /** - * You can easily have ambiguouties in the column renaming. If these + * You can easily have ambiguities in the column renaming. If these * are detected no renaming should take place, instead adding and dropping * should be used exclusively. * @@ -700,7 +700,7 @@ public function testDetectRenameColumnAmbiguous() $this->assertEquals(1, count($tableDiff->addedColumns), "'baz' should be added, not created through renaming!"); $this->assertArrayHasKey('baz', $tableDiff->addedColumns, "'baz' should be added, not created through renaming!"); - $this->assertEquals(2, count($tableDiff->removedColumns), "'foo' and 'bar' should both be dropped, an ambigouty exists which one could be renamed to 'baz'."); + $this->assertEquals(2, count($tableDiff->removedColumns), "'foo' and 'bar' should both be dropped, an ambiguity exists which one could be renamed to 'baz'."); $this->assertArrayHasKey('foo', $tableDiff->removedColumns, "'foo' should be removed."); $this->assertArrayHasKey('bar', $tableDiff->removedColumns, "'bar' should be removed."); $this->assertEquals(0, count($tableDiff->renamedColumns), "no renamings should take place."); @@ -840,7 +840,7 @@ public function testDiffDecimalWithNullPrecision() /** * @group DBAL-204 */ - public function testFqnSchemaComparision() + public function testFqnSchemaComparison() { $config = new SchemaConfig(); $config->setName("foo"); @@ -887,7 +887,7 @@ public function testNamespacesComparison() /** * @group DBAL-204 */ - public function testFqnSchemaComparisionDifferentSchemaNameButSameTableNoDiff() + public function testFqnSchemaComparisonDifferentSchemaNameButSameTableNoDiff() { $config = new SchemaConfig(); $config->setName("foo"); @@ -907,7 +907,7 @@ public function testFqnSchemaComparisionDifferentSchemaNameButSameTableNoDiff() /** * @group DBAL-204 */ - public function testFqnSchemaComparisionNoSchemaSame() + public function testFqnSchemaComparisonNoSchemaSame() { $config = new SchemaConfig(); $config->setName("foo"); @@ -926,7 +926,7 @@ public function testFqnSchemaComparisionNoSchemaSame() /** * @group DDC-1657 */ - public function testAutoIncremenetSequences() + public function testAutoIncrementSequences() { $oldSchema = new Schema(); $table = $oldSchema->createTable("foo"); @@ -950,7 +950,7 @@ public function testAutoIncremenetSequences() * Check that added autoincrement sequence is not populated in newSequences * @group DBAL-562 */ - public function testAutoIncremenetNoSequences() + public function testAutoIncrementNoSequences() { $oldSchema = new Schema(); $table = $oldSchema->createTable("foo"); diff --git a/tests/Doctrine/Tests/DBAL/Schema/IndexTest.php b/tests/Doctrine/Tests/DBAL/Schema/IndexTest.php index 5c92121c309..088905dcb62 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/IndexTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/IndexTest.php @@ -39,7 +39,7 @@ public function testCreateUnique() /** * @group DBAL-50 */ - public function testFullfilledByUnique() + public function testFulfilledByUnique() { $idx1 = $this->createIndex(true, false); $idx2 = $this->createIndex(true, false); @@ -52,7 +52,7 @@ public function testFullfilledByUnique() /** * @group DBAL-50 */ - public function testFullfilledByPrimary() + public function testFulfilledByPrimary() { $idx1 = $this->createIndex(true, true); $idx2 = $this->createIndex(true, true); @@ -65,7 +65,7 @@ public function testFullfilledByPrimary() /** * @group DBAL-50 */ - public function testFullfilledByIndex() + public function testFulfilledByIndex() { $idx1 = $this->createIndex(); $idx2 = $this->createIndex(); @@ -77,7 +77,7 @@ public function testFullfilledByIndex() $this->assertTrue($idx1->isFullfilledBy($uniq)); } - public function testFullfilledWithPartial() + public function testFulfilledWithPartial() { $without = new Index('without', array('col1', 'col2'), true, false, array(), array()); $partial = new Index('partial', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL')); diff --git a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php index f17f0ca6f25..c6cbee5e3bb 100644 --- a/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php +++ b/tests/Doctrine/Tests/DBAL/Schema/SchemaTest.php @@ -24,7 +24,7 @@ public function testAddTable() $this->assertTrue($schema->hasTable($tableName)); } - public function testTableMatchingCaseInsenstive() + public function testTableMatchingCaseInsensitive() { $table = new Table("Foo"); diff --git a/tests/Doctrine/Tests/DBAL/Sharding/PoolingShardConnectionTest.php b/tests/Doctrine/Tests/DBAL/Sharding/PoolingShardConnectionTest.php index c0a446bddf1..d77c11d2a47 100644 --- a/tests/Doctrine/Tests/DBAL/Sharding/PoolingShardConnectionTest.php +++ b/tests/Doctrine/Tests/DBAL/Sharding/PoolingShardConnectionTest.php @@ -72,7 +72,7 @@ public function testNoGlobalServerException() )); } - public function testNoShardsServersExecption() + public function testNoShardsServersException() { $this->setExpectedException('InvalidArgumentException', "Connection Parameters require 'global' and 'shards' configurations."); @@ -84,7 +84,7 @@ public function testNoShardsServersExecption() )); } - public function testNoShardsChoserExecption() + public function testNoShardsChoserException() { $this->setExpectedException('InvalidArgumentException', "Missing Shard Choser configuration 'shardChoser'"); diff --git a/tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php b/tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php index f73e494081a..7790086a11d 100644 --- a/tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php +++ b/tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php @@ -72,7 +72,7 @@ public function testSelectShard() $this->assertEquals(1234, $sm->getCurrentDistributionValue()); } - public function testSelectShardNoDistriubtionValue() + public function testSelectShardNoDistributionValue() { $conn = $this->createConnection(array('sharding' => array('federationName' => 'abc', 'distributionKey' => 'foo', 'distributionType' => 'integer'))); $conn->expects($this->at(1))->method('isTransactionActive')->will($this->returnValue(false));