Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 162-171 (lines=10) @@
159
        $sql = $this->_platform->getCreateTableSQL($table);
160
    }
161
162
    public function testGeneratesTableCreationSql()
163
    {
164
        $table = new Table('test');
165
        $table->addColumn('id', 'integer', array('notnull' => true, 'autoincrement' => true));
166
        $table->addColumn('test', 'string', array('notnull' => false, 'length' => 255));
167
        $table->setPrimaryKey(array('id'));
168
169
        $sql = $this->_platform->getCreateTableSQL($table);
170
        self::assertEquals($this->getGenerateTableSql(), $sql[0]);
171
    }
172
173
    abstract public function getGenerateTableSql();
174
@@ 175-184 (lines=10) @@
172
173
    abstract public function getGenerateTableSql();
174
175
    public function testGenerateTableWithMultiColumnUniqueIndex()
176
    {
177
        $table = new Table('test');
178
        $table->addColumn('foo', 'string', array('notnull' => false, 'length' => 255));
179
        $table->addColumn('bar', 'string', array('notnull' => false, 'length' => 255));
180
        $table->addUniqueIndex(array("foo", "bar"));
181
182
        $sql = $this->_platform->getCreateTableSQL($table);
183
        self::assertEquals($this->getGenerateTableWithMultiColumnUniqueIndexSql(), $sql);
184
    }
185
186
    abstract public function getGenerateTableWithMultiColumnUniqueIndexSql();
187