Code Duplication    Length = 16-16 lines in 2 locations

tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php 2 locations

@@ 888-903 (lines=16) @@
885
    /**
886
     * @group DBAL-234
887
     */
888
    public function testQuotesAlterTableRenameIndex()
889
    {
890
        $tableDiff = new TableDiff('table');
891
        $tableDiff->fromTable = new Table('table');
892
        $tableDiff->fromTable->addColumn('id', 'integer');
893
        $tableDiff->fromTable->setPrimaryKey(array('id'));
894
        $tableDiff->renamedIndexes = array(
895
            'create' => new Index('select', array('id')),
896
            '`foo`'  => new Index('`bar`', array('id')),
897
        );
898
899
        self::assertSame(
900
            $this->getQuotedAlterTableRenameIndexSQL(),
901
            $this->_platform->getAlterTableSQL($tableDiff)
902
        );
903
    }
904
905
    /**
906
     * @group DBAL-234
@@ 1043-1058 (lines=16) @@
1040
    /**
1041
     * @group DBAL-807
1042
     */
1043
    public function testQuotesAlterTableRenameIndexInSchema()
1044
    {
1045
        $tableDiff = new TableDiff('`schema`.table');
1046
        $tableDiff->fromTable = new Table('`schema`.table');
1047
        $tableDiff->fromTable->addColumn('id', 'integer');
1048
        $tableDiff->fromTable->setPrimaryKey(array('id'));
1049
        $tableDiff->renamedIndexes = array(
1050
            'create' => new Index('select', array('id')),
1051
            '`foo`'  => new Index('`bar`', array('id')),
1052
        );
1053
1054
        self::assertSame(
1055
            $this->getQuotedAlterTableRenameIndexInSchemaSQL(),
1056
            $this->_platform->getAlterTableSQL($tableDiff)
1057
        );
1058
    }
1059
1060
    /**
1061
     * @group DBAL-234