Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 176-187 (lines=12) @@
173
        $table->getIndex('unknownIndex');
174
    }
175
176
    public function testAddTwoPrimaryThrowsException() : void
177
    {
178
        $this->expectException(SchemaException::class);
179
180
        $type    = Type::getType('integer');
181
        $columns = [new Column('foo', $type), new Column('bar', $type)];
182
        $indexes = [
183
            new Index('the_primary', ['foo'], true, true),
184
            new Index('other_primary', ['bar'], true, true),
185
        ];
186
        $table   = new Table('foo', $columns, $indexes, []);
187
    }
188
189
    public function testAddTwoIndexesWithSameNameThrowsException() : void
190
    {
@@ 189-200 (lines=12) @@
186
        $table   = new Table('foo', $columns, $indexes, []);
187
    }
188
189
    public function testAddTwoIndexesWithSameNameThrowsException() : void
190
    {
191
        $this->expectException(SchemaException::class);
192
193
        $type    = Type::getType('integer');
194
        $columns = [new Column('foo', $type), new Column('bar', $type)];
195
        $indexes = [
196
            new Index('an_idx', ['foo'], false, false),
197
            new Index('an_idx', ['bar'], false, false),
198
        ];
199
        $table   = new Table('foo', $columns, $indexes, []);
200
    }
201
202
    public function testConstraints() : void
203
    {