Skip to content
Permalink
Browse files

Fix tests on windows

  • Loading branch information...
dereuromark committed Jun 27, 2014
1 parent fe33598 commit c7687561da4216ce94ef11e969dc489193adb77e
@@ -723,7 +723,7 @@ public function testCreateSql() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}
/**
@@ -779,7 +779,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
$table = (new Table('composite_key'))
->addColumn('id', [
@@ -805,7 +805,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}
/**
@@ -646,7 +646,7 @@ public function testConstraintSql($name, $data, $expected) {
'type' => 'integer',
])->addConstraint($name, $data);
$this->assertEquals($expected, $schema->constraintSql($table, $name));
$this->assertTextEquals($expected, $schema->constraintSql($table, $name));
}
/**
@@ -692,7 +692,7 @@ public function testCreateSql() {
$result = $table->createSql($connection);
$this->assertCount(3, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
$this->assertEquals(
'CREATE INDEX "title_idx" ON "schema_articles" ("title")',
$result[1]
@@ -756,7 +756,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
$table = (new Table('composite_key'))
->addColumn('id', [
@@ -782,7 +782,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}
/**
@@ -772,7 +772,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
// Sqlite only supports AUTO_INCREMENT on single column primary
// keys. Ensure that schema data follows the limitations of Sqlite.
@@ -800,7 +800,7 @@ public function testCreateSqlCompositeIntegerKey() {
SQL;
$result = $table->createSql($connection);
$this->assertCount(1, $result);
$this->assertEquals($expected, $result[0]);
$this->assertTextEquals($expected, $result[0]);
}
/**

0 comments on commit c768756

Please sign in to comment.
You can’t perform that action at this time.