Commit 4cbb2482 authored by Possum's avatar Possum

Typos in tests.

parent 561b3985
...@@ -533,11 +533,11 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -533,11 +533,11 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this->assertEquals('2010-01-08', date('Y-m-d', strtotime($row['add_weeks'])), "Adding week should end up on 2010-01-08"); $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('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('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('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('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() public function testLocateExpression()
......
...@@ -56,7 +56,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -56,7 +56,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
} }
} }
public function testForeignKeyContraintViolationExceptionOnInsert() public function testForeignKeyConstraintViolationExceptionOnInsert()
{ {
if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) {
$this->markTestSkipped("Only fails on platforms with foreign key constraints."); $this->markTestSkipped("Only fails on platforms with foreign key constraints.");
...@@ -80,7 +80,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -80,7 +80,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this->tearDownForeignKeyConstraintViolationExceptionTest(); $this->tearDownForeignKeyConstraintViolationExceptionTest();
} }
public function testForeignKeyContraintViolationExceptionOnUpdate() public function testForeignKeyConstraintViolationExceptionOnUpdate()
{ {
if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) {
$this->markTestSkipped("Only fails on platforms with foreign key constraints."); $this->markTestSkipped("Only fails on platforms with foreign key constraints.");
...@@ -104,7 +104,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -104,7 +104,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this->tearDownForeignKeyConstraintViolationExceptionTest(); $this->tearDownForeignKeyConstraintViolationExceptionTest();
} }
public function testForeignKeyContraintViolationExceptionOnDelete() public function testForeignKeyConstraintViolationExceptionOnDelete()
{ {
if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) { if ( ! $this->_conn->getDatabasePlatform()->supportsForeignKeyConstraints()) {
$this->markTestSkipped("Only fails on platforms with foreign key constraints."); $this->markTestSkipped("Only fails on platforms with foreign key constraints.");
...@@ -128,7 +128,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase ...@@ -128,7 +128,7 @@ class ExceptionTest extends \Doctrine\Tests\DbalFunctionalTestCase
$this->tearDownForeignKeyConstraintViolationExceptionTest(); $this->tearDownForeignKeyConstraintViolationExceptionTest();
} }
public function testForeignKeyContraintViolationExceptionOnTruncate() public function testForeignKeyConstraintViolationExceptionOnTruncate()
{ {
$platform = $this->_conn->getDatabasePlatform(); $platform = $this->_conn->getDatabasePlatform();
......
...@@ -53,7 +53,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -53,7 +53,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$this->assertEquals($collation, $columns[$columnName]->getPlatformOption('collation')); $this->assertEquals($collation, $columns[$columnName]->getPlatformOption('collation'));
} }
public function testDefaultContraints() public function testDefaultConstraints()
{ {
$table = new Table('sqlsrv_default_constraints'); $table = new Table('sqlsrv_default_constraints');
$table->addColumn('no_default', 'string'); $table->addColumn('no_default', 'string');
...@@ -179,7 +179,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -179,7 +179,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0));
$table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment_string_0', 'integer', array('comment' => '0'));
$table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); $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('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!'));
$table->addColumn('commented_type', 'object'); $table->addColumn('commented_type', 'object');
$table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.'));
...@@ -197,7 +197,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase ...@@ -197,7 +197,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$this->assertEquals('0', $columns['comment_float_0']->getComment()); $this->assertEquals('0', $columns['comment_float_0']->getComment());
$this->assertEquals('0', $columns['comment_string_0']->getComment()); $this->assertEquals('0', $columns['comment_string_0']->getComment());
$this->assertEquals('Doctrine 0wnz you!', $columns['comment']->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->assertEquals('Doctrine 0wnz comments for reserved keyword columns!', $columns['[create]']->getComment());
$this->assertNull($columns['commented_type']->getComment()); $this->assertNull($columns['commented_type']->getComment());
$this->assertEquals('Doctrine array type.', $columns['commented_type_with_comment']->getComment()); $this->assertEquals('Doctrine array type.', $columns['commented_type_with_comment']->getComment());
......
...@@ -83,7 +83,7 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase ...@@ -83,7 +83,7 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
); );
} }
public function testGetInvalidtForeignKeyReferentialActionSQL() public function testGetInvalidForeignKeyReferentialActionSQL()
{ {
$this->setExpectedException('InvalidArgumentException'); $this->setExpectedException('InvalidArgumentException');
$this->_platform->getForeignKeyReferentialActionSQL('unknown'); $this->_platform->getForeignKeyReferentialActionSQL('unknown');
......
...@@ -303,7 +303,7 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa ...@@ -303,7 +303,7 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
* @dataProvider pgBooleanProvider * @dataProvider pgBooleanProvider
* *
* @param string $databaseValue * @param string $databaseValue
* @param string $prepareStatementValue * @param string $preparedStatementValue
* @param integer $integerValue * @param integer $integerValue
* @param boolean $booleanValue * @param boolean $booleanValue
*/ */
...@@ -338,7 +338,7 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa ...@@ -338,7 +338,7 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
* @dataProvider pgBooleanProvider * @dataProvider pgBooleanProvider
* *
* @param string $databaseValue * @param string $databaseValue
* @param string $prepareStatementValue * @param string $preparedStatementValue
* @param integer $integerValue * @param integer $integerValue
* @param boolean $booleanValue * @param boolean $booleanValue
*/ */
......
...@@ -529,7 +529,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -529,7 +529,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
$table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0));
$table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment_string_0', 'integer', array('comment' => '0'));
$table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); $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('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!'));
$table->addColumn('commented_type', 'object'); $table->addColumn('commented_type', 'object');
$table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.'));
...@@ -543,7 +543,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -543,7 +543,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
"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_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'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 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'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'(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", "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 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas ...@@ -568,7 +568,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
$table->addColumn('comment_float_0', 'integer', array('comment' => 0.0)); $table->addColumn('comment_float_0', 'integer', array('comment' => 0.0));
$table->addColumn('comment_string_0', 'integer', array('comment' => '0')); $table->addColumn('comment_string_0', 'integer', array('comment' => '0'));
$table->addColumn('comment', 'integer', array('comment' => 'Doctrine 0wnz you!')); $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('create', 'integer', array('comment' => 'Doctrine 0wnz comments for reserved keyword columns!'));
$table->addColumn('commented_type', 'object'); $table->addColumn('commented_type', 'object');
$table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.')); $table->addColumn('commented_type_with_comment', 'array', array('comment' => 'Doctrine array type.'));
......
...@@ -570,7 +570,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -570,7 +570,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
$this->assertSchemaTableChangeCount($diff, 1, 0, 1); $this->assertSchemaTableChangeCount($diff, 1, 0, 1);
} }
public function testSequencesCaseInsenstive() public function testSequencesCaseInsensitive()
{ {
$schemaA = new Schema(); $schemaA = new Schema();
$schemaA->createSequence('foo'); $schemaA->createSequence('foo');
...@@ -680,7 +680,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -680,7 +680,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* 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 * are detected no renaming should take place, instead adding and dropping
* should be used exclusively. * should be used exclusively.
* *
...@@ -700,7 +700,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -700,7 +700,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(1, count($tableDiff->addedColumns), "'baz' should be added, not created through renaming!"); $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->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('foo', $tableDiff->removedColumns, "'foo' should be removed.");
$this->assertArrayHasKey('bar', $tableDiff->removedColumns, "'bar' should be removed."); $this->assertArrayHasKey('bar', $tableDiff->removedColumns, "'bar' should be removed.");
$this->assertEquals(0, count($tableDiff->renamedColumns), "no renamings should take place."); $this->assertEquals(0, count($tableDiff->renamedColumns), "no renamings should take place.");
...@@ -840,7 +840,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -840,7 +840,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-204 * @group DBAL-204
*/ */
public function testFqnSchemaComparision() public function testFqnSchemaComparison()
{ {
$config = new SchemaConfig(); $config = new SchemaConfig();
$config->setName("foo"); $config->setName("foo");
...@@ -887,7 +887,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -887,7 +887,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-204 * @group DBAL-204
*/ */
public function testFqnSchemaComparisionDifferentSchemaNameButSameTableNoDiff() public function testFqnSchemaComparisonDifferentSchemaNameButSameTableNoDiff()
{ {
$config = new SchemaConfig(); $config = new SchemaConfig();
$config->setName("foo"); $config->setName("foo");
...@@ -907,7 +907,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -907,7 +907,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-204 * @group DBAL-204
*/ */
public function testFqnSchemaComparisionNoSchemaSame() public function testFqnSchemaComparisonNoSchemaSame()
{ {
$config = new SchemaConfig(); $config = new SchemaConfig();
$config->setName("foo"); $config->setName("foo");
...@@ -926,7 +926,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -926,7 +926,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DDC-1657 * @group DDC-1657
*/ */
public function testAutoIncremenetSequences() public function testAutoIncrementSequences()
{ {
$oldSchema = new Schema(); $oldSchema = new Schema();
$table = $oldSchema->createTable("foo"); $table = $oldSchema->createTable("foo");
...@@ -950,7 +950,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -950,7 +950,7 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
* Check that added autoincrement sequence is not populated in newSequences * Check that added autoincrement sequence is not populated in newSequences
* @group DBAL-562 * @group DBAL-562
*/ */
public function testAutoIncremenetNoSequences() public function testAutoIncrementNoSequences()
{ {
$oldSchema = new Schema(); $oldSchema = new Schema();
$table = $oldSchema->createTable("foo"); $table = $oldSchema->createTable("foo");
......
...@@ -39,7 +39,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase ...@@ -39,7 +39,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-50 * @group DBAL-50
*/ */
public function testFullfilledByUnique() public function testFulfilledByUnique()
{ {
$idx1 = $this->createIndex(true, false); $idx1 = $this->createIndex(true, false);
$idx2 = $this->createIndex(true, false); $idx2 = $this->createIndex(true, false);
...@@ -52,7 +52,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase ...@@ -52,7 +52,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-50 * @group DBAL-50
*/ */
public function testFullfilledByPrimary() public function testFulfilledByPrimary()
{ {
$idx1 = $this->createIndex(true, true); $idx1 = $this->createIndex(true, true);
$idx2 = $this->createIndex(true, true); $idx2 = $this->createIndex(true, true);
...@@ -65,7 +65,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase ...@@ -65,7 +65,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase
/** /**
* @group DBAL-50 * @group DBAL-50
*/ */
public function testFullfilledByIndex() public function testFulfilledByIndex()
{ {
$idx1 = $this->createIndex(); $idx1 = $this->createIndex();
$idx2 = $this->createIndex(); $idx2 = $this->createIndex();
...@@ -77,7 +77,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase ...@@ -77,7 +77,7 @@ class IndexTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($idx1->isFullfilledBy($uniq)); $this->assertTrue($idx1->isFullfilledBy($uniq));
} }
public function testFullfilledWithPartial() public function testFulfilledWithPartial()
{ {
$without = new Index('without', array('col1', 'col2'), true, false, array(), array()); $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')); $partial = new Index('partial', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL'));
......
...@@ -24,7 +24,7 @@ class SchemaTest extends \PHPUnit_Framework_TestCase ...@@ -24,7 +24,7 @@ class SchemaTest extends \PHPUnit_Framework_TestCase
$this->assertTrue($schema->hasTable($tableName)); $this->assertTrue($schema->hasTable($tableName));
} }
public function testTableMatchingCaseInsenstive() public function testTableMatchingCaseInsensitive()
{ {
$table = new Table("Foo"); $table = new Table("Foo");
......
...@@ -72,7 +72,7 @@ class PoolingShardConnectionTest extends \PHPUnit_Framework_TestCase ...@@ -72,7 +72,7 @@ class PoolingShardConnectionTest extends \PHPUnit_Framework_TestCase
)); ));
} }
public function testNoShardsServersExecption() public function testNoShardsServersException()
{ {
$this->setExpectedException('InvalidArgumentException', "Connection Parameters require 'global' and 'shards' configurations."); $this->setExpectedException('InvalidArgumentException', "Connection Parameters require 'global' and 'shards' configurations.");
...@@ -84,7 +84,7 @@ class PoolingShardConnectionTest extends \PHPUnit_Framework_TestCase ...@@ -84,7 +84,7 @@ class PoolingShardConnectionTest extends \PHPUnit_Framework_TestCase
)); ));
} }
public function testNoShardsChoserExecption() public function testNoShardsChoserException()
{ {
$this->setExpectedException('InvalidArgumentException', "Missing Shard Choser configuration 'shardChoser'"); $this->setExpectedException('InvalidArgumentException', "Missing Shard Choser configuration 'shardChoser'");
......
...@@ -72,7 +72,7 @@ class SQLAzureShardManagerTest extends \PHPUnit_Framework_TestCase ...@@ -72,7 +72,7 @@ class SQLAzureShardManagerTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(1234, $sm->getCurrentDistributionValue()); $this->assertEquals(1234, $sm->getCurrentDistributionValue());
} }
public function testSelectShardNoDistriubtionValue() public function testSelectShardNoDistributionValue()
{ {
$conn = $this->createConnection(array('sharding' => array('federationName' => 'abc', 'distributionKey' => 'foo', 'distributionType' => 'integer'))); $conn = $this->createConnection(array('sharding' => array('federationName' => 'abc', 'distributionKey' => 'foo', 'distributionType' => 'integer')));
$conn->expects($this->at(1))->method('isTransactionActive')->will($this->returnValue(false)); $conn->expects($this->at(1))->method('isTransactionActive')->will($this->returnValue(false));
......
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