@@ 444-456 (lines=13) @@ | ||
441 | self::assertTrue($c->diffSequence($seq1, $seq3)); |
|
442 | } |
|
443 | ||
444 | public function testRemovedSequence() |
|
445 | { |
|
446 | $schema1 = new Schema(); |
|
447 | $seq = $schema1->createSequence('foo'); |
|
448 | ||
449 | $schema2 = new Schema(); |
|
450 | ||
451 | $c = new Comparator(); |
|
452 | $diffSchema = $c->compare($schema1, $schema2); |
|
453 | ||
454 | self::assertEquals(1, count($diffSchema->removedSequences)); |
|
455 | self::assertSame($seq, $diffSchema->removedSequences[0]); |
|
456 | } |
|
457 | ||
458 | public function testAddedSequence() |
|
459 | { |
|
@@ 458-470 (lines=13) @@ | ||
455 | self::assertSame($seq, $diffSchema->removedSequences[0]); |
|
456 | } |
|
457 | ||
458 | public function testAddedSequence() |
|
459 | { |
|
460 | $schema1 = new Schema(); |
|
461 | ||
462 | $schema2 = new Schema(); |
|
463 | $seq = $schema2->createSequence('foo'); |
|
464 | ||
465 | $c = new Comparator(); |
|
466 | $diffSchema = $c->compare($schema1, $schema2); |
|
467 | ||
468 | self::assertEquals(1, count($diffSchema->newSequences)); |
|
469 | self::assertSame($seq, $diffSchema->newSequences[0]); |
|
470 | } |
|
471 | ||
472 | public function testTableAddForeignKey() |
|
473 | { |