Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 29-36 (lines=8) @@
26
        self::assertEquals('SELECT n FROM Foo LIMIT 18446744073709551615 OFFSET 10', $sql);
27
    }
28
29
    public function testGenerateMixedCaseTableCreate() : void
30
    {
31
        $table = new Table('Foo');
32
        $table->addColumn('Bar', 'integer');
33
34
        $sql = $this->platform->getCreateTableSQL($table);
35
        self::assertEquals('CREATE TABLE Foo (Bar INT NOT NULL) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB', array_shift($sql));
36
    }
37
38
    public function getGenerateTableSql() : string
39
    {

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

@@ 181-188 (lines=8) @@
178
        self::assertEquals('DROP TABLE foobar', $this->platform->getDropTableSQL('foobar'));
179
    }
180
181
    public function testGenerateTableWithAutoincrement() : void
182
    {
183
        $table  = new Table('autoinc_table');
184
        $column = $table->addColumn('id', 'integer');
185
        $column->setAutoincrement(true);
186
187
        self::assertEquals(['CREATE TABLE autoinc_table (id SERIAL NOT NULL)'], $this->platform->getCreateTableSQL($table));
188
    }
189
190
    /**
191
     * @return mixed[][]