Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 80-93 (lines=14) @@
77
        self::assertTrue($idx1->isFullfilledBy($uniq));
78
    }
79
80
    public function testFulfilledWithPartial()
81
    {
82
        $without = new Index('without', array('col1', 'col2'), true, false, array(), array());
83
        $partial = new Index('partial', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL'));
84
        $another = new Index('another', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL'));
85
86
        self::assertFalse($partial->isFullfilledBy($without));
87
        self::assertFalse($without->isFullfilledBy($partial));
88
89
        self::assertTrue($partial->isFullfilledBy($partial));
90
91
        self::assertTrue($partial->isFullfilledBy($another));
92
        self::assertTrue($another->isFullfilledBy($partial));
93
    }
94
95
    public function testOverrulesWithPartial()
96
    {
@@ 95-108 (lines=14) @@
92
        self::assertTrue($another->isFullfilledBy($partial));
93
    }
94
95
    public function testOverrulesWithPartial()
96
    {
97
        $without = new Index('without', array('col1', 'col2'), true, false, array(), array());
98
        $partial = new Index('partial', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL'));
99
        $another = new Index('another', array('col1', 'col2'), true, false, array(), array('where' => 'col1 IS NULL'));
100
101
        self::assertFalse($partial->overrules($without));
102
        self::assertFalse($without->overrules($partial));
103
104
        self::assertTrue($partial->overrules($partial));
105
106
        self::assertTrue($partial->overrules($another));
107
        self::assertTrue($another->overrules($partial));
108
    }
109
110
    /**
111
     * @group DBAL-220