Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 263-275 (lines=13) @@
260
        );
261
    }
262
263
    public function testCreateTableWithFulltextIndex()
264
    {
265
        $table = new Table('fulltext_table');
266
        $table->addOption('engine', 'MyISAM');
267
        $table->addColumn('text', 'text');
268
        $table->addIndex(array('text'), 'fulltext_text');
269
270
        $index = $table->getIndex('fulltext_text');
271
        $index->addFlag('fulltext');
272
273
        $sql = $this->_platform->getCreateTableSQL($table);
274
        self::assertEquals(array('CREATE TABLE fulltext_table (text LONGTEXT NOT NULL, FULLTEXT INDEX fulltext_text (text)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = MyISAM'), $sql);
275
    }
276
277
    public function testCreateTableWithSpatialIndex()
278
    {
@@ 277-289 (lines=13) @@
274
        self::assertEquals(array('CREATE TABLE fulltext_table (text LONGTEXT NOT NULL, FULLTEXT INDEX fulltext_text (text)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = MyISAM'), $sql);
275
    }
276
277
    public function testCreateTableWithSpatialIndex()
278
    {
279
        $table = new Table('spatial_table');
280
        $table->addOption('engine', 'MyISAM');
281
        $table->addColumn('point', 'text'); // This should be a point type
282
        $table->addIndex(array('point'), 'spatial_text');
283
284
        $index = $table->getIndex('spatial_text');
285
        $index->addFlag('spatial');
286
287
        $sql = $this->_platform->getCreateTableSQL($table);
288
        self::assertEquals(array('CREATE TABLE spatial_table (point LONGTEXT NOT NULL, SPATIAL INDEX spatial_text (point)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = MyISAM'), $sql);
289
    }
290
291
    public function testClobTypeDeclarationSQL()
292
    {