| @@ 553-571 (lines=19) @@ | ||
| 550 | self::assertEquals(1, count($tableDiff->changedForeignKeys)); |
|
| 551 | } |
|
| 552 | ||
| 553 | public function testTablesCaseInsensitive() |
|
| 554 | { |
|
| 555 | $schemaA = new Schema(); |
|
| 556 | $schemaA->createTable('foo'); |
|
| 557 | $schemaA->createTable('bAr'); |
|
| 558 | $schemaA->createTable('BAZ'); |
|
| 559 | $schemaA->createTable('new'); |
|
| 560 | ||
| 561 | $schemaB = new Schema(); |
|
| 562 | $schemaB->createTable('FOO'); |
|
| 563 | $schemaB->createTable('bar'); |
|
| 564 | $schemaB->createTable('Baz'); |
|
| 565 | $schemaB->createTable('old'); |
|
| 566 | ||
| 567 | $c = new Comparator(); |
|
| 568 | $diff = $c->compare($schemaA, $schemaB); |
|
| 569 | ||
| 570 | self::assertSchemaTableChangeCount($diff, 1, 0, 1); |
|
| 571 | } |
|
| 572 | ||
| 573 | public function testSequencesCaseInsensitive() |
|
| 574 | { |
|
| @@ 573-591 (lines=19) @@ | ||
| 570 | self::assertSchemaTableChangeCount($diff, 1, 0, 1); |
|
| 571 | } |
|
| 572 | ||
| 573 | public function testSequencesCaseInsensitive() |
|
| 574 | { |
|
| 575 | $schemaA = new Schema(); |
|
| 576 | $schemaA->createSequence('foo'); |
|
| 577 | $schemaA->createSequence('BAR'); |
|
| 578 | $schemaA->createSequence('Baz'); |
|
| 579 | $schemaA->createSequence('new'); |
|
| 580 | ||
| 581 | $schemaB = new Schema(); |
|
| 582 | $schemaB->createSequence('FOO'); |
|
| 583 | $schemaB->createSequence('Bar'); |
|
| 584 | $schemaB->createSequence('baz'); |
|
| 585 | $schemaB->createSequence('old'); |
|
| 586 | ||
| 587 | $c = new Comparator(); |
|
| 588 | $diff = $c->compare($schemaA, $schemaB); |
|
| 589 | ||
| 590 | self::assertSchemaSequenceChangeCount($diff, 1, 0, 1); |
|
| 591 | } |
|
| 592 | ||
| 593 | public function testCompareColumnCompareCaseInsensitive() |
|
| 594 | { |
|