Code Duplication    Length = 8-10 lines in 2 locations

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

@@ 697-704 (lines=8) @@
694
        self::assertFalse($tableDiff);
695
    }
696
697
    public function testCompareForeignKeyWithRestrictOrNoActionAreTheSame()
698
    {
699
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
700
        $fk2 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'RESTRICT'));
701
702
        $c = new Comparator();
703
        self::assertFalse($c->diffForeignKey($fk1, $fk2));
704
    }
705
706
    /**
707
     * @group DBAL-492
@@ 1110-1119 (lines=10) @@
1107
    /**
1108
     * @group DBAL-617
1109
     */
1110
    public function testCompareQuotedAndUnquotedForeignKeyColumns()
1111
    {
1112
        $fk1 = new ForeignKeyConstraint(array("foo"), "bar", array("baz"), "fk1", array('onDelete' => 'NO ACTION'));
1113
        $fk2 = new ForeignKeyConstraint(array("`foo`"), "bar", array("`baz`"), "fk1", array('onDelete' => 'NO ACTION'));
1114
1115
        $comparator = new Comparator();
1116
        $diff       = $comparator->diffForeignKey($fk1, $fk2);
1117
1118
        self::assertFalse($diff);
1119
    }
1120
1121
    /**
1122
     * @param SchemaDiff $diff