Code Duplication    Length = 8-10 lines in 2 locations

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

@@ 360-367 (lines=8) @@
357
    /**
358
     * @group DDC-133
359
     */
360
    public function testAllowImplicitSchemaTableInAutogeneratedIndexNames() : void
361
    {
362
        $table = new Table('foo.bar');
363
        $table->addColumn('baz', 'integer', []);
364
        $table->addIndex(['baz']);
365
366
        self::assertCount(1, $table->getIndexes());
367
    }
368
369
    /**
370
     * @group DBAL-50
@@ 794-803 (lines=10) @@
791
    /**
792
     * @group DBAL-234
793
     */
794
    public function testThrowsExceptionOnRenamingNonExistingIndex() : void
795
    {
796
        $table = new Table('test');
797
        $table->addColumn('id', 'integer');
798
        $table->addIndex(['id'], 'idx');
799
800
        $this->expectException(SchemaException::class);
801
802
        $table->renameIndex('foo', 'bar');
803
    }
804
805
    /**
806
     * @group DBAL-234