Code Duplication    Length = 16-16 lines in 2 locations

tests/Doctrine/Tests/DBAL/Functional/Schema/MySqlSchemaManagerTest.php 2 locations

@@ 61-76 (lines=16) @@
58
        $this->assertFalse($diff, "no changes expected.");
59
    }
60
61
    public function testFulltextIndex()
62
    {
63
        $table = new Table('fulltext_index');
64
        $table->addColumn('text', 'text');
65
        $table->addIndex(array('text'), 'f_index');
66
        $table->addOption('engine', 'MyISAM');
67
68
        $index = $table->getIndex('f_index');
69
        $index->addFlag('fulltext');
70
71
        $this->_sm->dropAndCreateTable($table);
72
73
        $indexes = $this->_sm->listTableIndexes('fulltext_index');
74
        $this->assertArrayHasKey('f_index', $indexes);
75
        $this->assertTrue($indexes['f_index']->hasFlag('fulltext'));
76
    }
77
78
    public function testSpatialIndex()
79
    {
@@ 78-93 (lines=16) @@
75
        $this->assertTrue($indexes['f_index']->hasFlag('fulltext'));
76
    }
77
78
    public function testSpatialIndex()
79
    {
80
        $table = new Table('spatial_index');
81
        $table->addColumn('point', 'point');
82
        $table->addIndex(array('point'), 's_index');
83
        $table->addOption('engine', 'MyISAM');
84
85
        $index = $table->getIndex('s_index');
86
        $index->addFlag('spatial');
87
88
        $this->_sm->dropAndCreateTable($table);
89
90
        $indexes = $this->_sm->listTableIndexes('spatial_index');
91
        $this->assertArrayHasKey('s_index', $indexes);
92
        $this->assertTrue($indexes['s_index']->hasFlag('spatial'));
93
    }
94
95
    /**
96
     * @group DBAL-400