Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 42-50 (lines=9) @@
39
    /**
40
     * @group DBAL-50
41
     */
42
    public function testFulfilledByUnique()
43
    {
44
        $idx1 = $this->createIndex(true, false);
45
        $idx2 = $this->createIndex(true, false);
46
        $idx3 = $this->createIndex();
47
48
        self::assertTrue($idx1->isFullfilledBy($idx2));
49
        self::assertFalse($idx1->isFullfilledBy($idx3));
50
    }
51
52
    /**
53
     * @group DBAL-50
@@ 55-63 (lines=9) @@
52
    /**
53
     * @group DBAL-50
54
     */
55
    public function testFulfilledByPrimary()
56
    {
57
        $idx1 = $this->createIndex(true, true);
58
        $idx2 = $this->createIndex(true, true);
59
        $idx3 = $this->createIndex(true, false);
60
61
        self::assertTrue($idx1->isFullfilledBy($idx2));
62
        self::assertFalse($idx1->isFullfilledBy($idx3));
63
    }
64
65
    /**
66
     * @group DBAL-50