Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 249-256 (lines=8) @@
246
        self::assertFalse($table->getIndex("my_idx")->isPrimary());
247
    }
248
249
    public function testBuilderAddIndexWithInvalidNameThrowsException()
250
    {
251
        $this->expectException("Doctrine\DBAL\Schema\SchemaException");
252
253
        $table = new Table("foo");
254
        $table->addColumn("bar", 'integer');
255
        $table->addIndex(array("bar"), "invalid name %&/");
256
    }
257
258
    public function testBuilderAddIndexWithUnknownColumnThrowsException()
259
    {
@@ 782-789 (lines=8) @@
779
     * @group DBAL-234
780
     * @expectedException \Doctrine\DBAL\Schema\SchemaException
781
     */
782
    public function testThrowsExceptionOnRenamingNonExistingIndex()
783
    {
784
        $table = new Table("test");
785
        $table->addColumn('id', 'integer');
786
        $table->addIndex(array('id'), 'idx');
787
788
        $table->renameIndex('foo', 'bar');
789
    }
790
791
    /**
792
     * @group DBAL-234