Code Duplication    Length = 8-10 lines in 2 locations

tests/Doctrine/Tests/DBAL/Schema/ComparatorTest.php 2 locations

@@ 644-651 (lines=8) @@
641
        self::assertFalse($tableDiff);
642
    }
643
644
    public function testCompareForeignKey_RestrictNoAction_AreTheSame()
645
    {
646
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
647
        $fk2 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'RESTRICT'));
648
649
        $c = new Comparator();
650
        self::assertFalse($c->diffForeignKey($fk1, $fk2));
651
    }
652
653
    /**
654
     * @group DBAL-492
@@ 1057-1066 (lines=10) @@
1054
    /**
1055
     * @group DBAL-617
1056
     */
1057
    public function testCompareQuotedAndUnquotedForeignKeyColumns()
1058
    {
1059
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
1060
        $fk2 = new ForeignKeyConstraint(array("`foo`"), "bar", array("`baz`"), "fk1", array('onDelete' => 'NO ACTION'));
1061
1062
        $comparator = new Comparator();
1063
        $diff = $comparator->diffForeignKey($fk1, $fk2);
1064
1065
        self::assertFalse($diff);
1066
    }
1067
1068
    /**
1069
     * @param SchemaDiff $diff