Code Duplication    Length = 19-19 lines in 4 locations

tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php 1 location

@@ 103-121 (lines=19) @@
100
        );
101
    }
102
103
    public function testGeneratesTypeDeclarationForStrings()
104
    {
105
        self::assertEquals(
106
            'CHAR(10)',
107
            $this->_platform->getVarcharTypeDeclarationSQL(
108
                array('length' => 10, 'fixed' => true)
109
            )
110
        );
111
        self::assertEquals(
112
            'VARCHAR(50)',
113
            $this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)),
114
            'Variable string declaration is not correct'
115
        );
116
        self::assertEquals(
117
            'VARCHAR(255)',
118
            $this->_platform->getVarcharTypeDeclarationSQL(array()),
119
            'Long string declaration is not correct'
120
        );
121
    }
122
123
    public function testPrefersIdentityColumns()
124
    {

tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php 1 location

@@ 189-207 (lines=19) @@
186
        );
187
    }
188
189
    public function testGeneratesTypeDeclarationForStrings()
190
    {
191
        self::assertEquals(
192
            'CHAR(10)',
193
            $this->_platform->getVarcharTypeDeclarationSQL(
194
                array('length' => 10, 'fixed' => true)
195
            )
196
        );
197
        self::assertEquals(
198
            'VARCHAR(50)',
199
            $this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)),
200
            'Variable string declaration is not correct'
201
        );
202
        self::assertEquals(
203
            'VARCHAR(255)',
204
            $this->_platform->getVarcharTypeDeclarationSQL(array()),
205
            'Long string declaration is not correct'
206
        );
207
    }
208
209
    public function getGenerateUniqueIndexSql()
210
    {

tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php 1 location

@@ 161-179 (lines=19) @@
158
        );
159
    }
160
161
    public function testGeneratesTypeDeclarationsForStrings()
162
    {
163
        self::assertEquals(
164
            'CHAR(10)',
165
            $this->_platform->getVarcharTypeDeclarationSQL(
166
                array('length' => 10, 'fixed' => true)
167
            )
168
        );
169
        self::assertEquals(
170
            'VARCHAR2(50)',
171
            $this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)),
172
            'Variable string declaration is not correct'
173
        );
174
        self::assertEquals(
175
            'VARCHAR2(255)',
176
            $this->_platform->getVarcharTypeDeclarationSQL(array()),
177
            'Long string declaration is not correct'
178
        );
179
    }
180
181
    public function testPrefersIdentityColumns()
182
    {

tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php 1 location

@@ 234-252 (lines=19) @@
231
        );
232
    }
233
234
    public function testGeneratesTypeDeclarationForStrings()
235
    {
236
        self::assertEquals(
237
            'CHAR(10)',
238
            $this->_platform->getVarcharTypeDeclarationSQL(
239
                array('length' => 10, 'fixed' => true)
240
            )
241
        );
242
        self::assertEquals(
243
            'VARCHAR(50)',
244
            $this->_platform->getVarcharTypeDeclarationSQL(array('length' => 50)),
245
            'Variable string declaration is not correct'
246
        );
247
        self::assertEquals(
248
            'VARCHAR(255)',
249
            $this->_platform->getVarcharTypeDeclarationSQL(array()),
250
            'Long string declaration is not correct'
251
        );
252
    }
253
254
    public function getGenerateIndexSql()
255
    {