@@ -698,12 +698,12 @@ class ComparatorTest extends \PHPUnit\Framework\TestCase
$c=newComparator();
$tableDiff=$c->diffTable($tableA,$tableB);
self::assertEquals(1,count($tableDiff->addedColumns),"'baz' should be added, not created through renaming!");
self::assertCount(1,$tableDiff->addedColumns,"'baz' should be added, not created through renaming!");
self::assertArrayHasKey('baz',$tableDiff->addedColumns,"'baz' should be added, not created through renaming!");
self::assertEquals(2,count($tableDiff->removedColumns),"'foo' and 'bar' should both be dropped, an ambiguity exists which one could be renamed to 'baz'.");
self::assertCount(2,$tableDiff->removedColumns,"'foo' and 'bar' should both be dropped, an ambiguity exists which one could be renamed to 'baz'.");
self::assertArrayHasKey('foo',$tableDiff->removedColumns,"'foo' should be removed.");
self::assertArrayHasKey('bar',$tableDiff->removedColumns,"'bar' should be removed.");
self::assertEquals(0,count($tableDiff->renamedColumns),"no renamings should take place.");
self::assertCount(0,$tableDiff->renamedColumns,"no renamings should take place.");
}
/**
...
...
@@ -801,7 +801,7 @@ class ComparatorTest extends \PHPUnit\Framework\TestCase