| @@ 606-624 (lines=19) @@ | ||
| 603 | self::assertEquals(1, count($tableDiff->changedForeignKeys)); |
|
| 604 | } |
|
| 605 | ||
| 606 | public function testTablesCaseInsensitive() |
|
| 607 | { |
|
| 608 | $schemaA = new Schema(); |
|
| 609 | $schemaA->createTable('foo'); |
|
| 610 | $schemaA->createTable('bAr'); |
|
| 611 | $schemaA->createTable('BAZ'); |
|
| 612 | $schemaA->createTable('new'); |
|
| 613 | ||
| 614 | $schemaB = new Schema(); |
|
| 615 | $schemaB->createTable('FOO'); |
|
| 616 | $schemaB->createTable('bar'); |
|
| 617 | $schemaB->createTable('Baz'); |
|
| 618 | $schemaB->createTable('old'); |
|
| 619 | ||
| 620 | $c = new Comparator(); |
|
| 621 | $diff = $c->compare($schemaA, $schemaB); |
|
| 622 | ||
| 623 | self::assertSchemaTableChangeCount($diff, 1, 0, 1); |
|
| 624 | } |
|
| 625 | ||
| 626 | public function testSequencesCaseInsensitive() |
|
| 627 | { |
|
| @@ 626-644 (lines=19) @@ | ||
| 623 | self::assertSchemaTableChangeCount($diff, 1, 0, 1); |
|
| 624 | } |
|
| 625 | ||
| 626 | public function testSequencesCaseInsensitive() |
|
| 627 | { |
|
| 628 | $schemaA = new Schema(); |
|
| 629 | $schemaA->createSequence('foo'); |
|
| 630 | $schemaA->createSequence('BAR'); |
|
| 631 | $schemaA->createSequence('Baz'); |
|
| 632 | $schemaA->createSequence('new'); |
|
| 633 | ||
| 634 | $schemaB = new Schema(); |
|
| 635 | $schemaB->createSequence('FOO'); |
|
| 636 | $schemaB->createSequence('Bar'); |
|
| 637 | $schemaB->createSequence('baz'); |
|
| 638 | $schemaB->createSequence('old'); |
|
| 639 | ||
| 640 | $c = new Comparator(); |
|
| 641 | $diff = $c->compare($schemaA, $schemaB); |
|
| 642 | ||
| 643 | self::assertSchemaSequenceChangeCount($diff, 1, 0, 1); |
|
| 644 | } |
|
| 645 | ||
| 646 | public function testCompareColumnCompareCaseInsensitive() |
|
| 647 | { |
|