Code Duplication    Length = 17-17 lines in 4 locations

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

@@ 95-111 (lines=17) @@
92
        self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar'));
93
    }
94
95
    public function testGeneratesTypeDeclarationForIntegers()
96
    {
97
        self::assertEquals(
98
                'INT',
99
                $this->_platform->getIntegerTypeDeclarationSQL(array())
100
        );
101
        self::assertEquals(
102
                'INT IDENTITY',
103
                $this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true)
104
        ));
105
        self::assertEquals(
106
                'INT IDENTITY',
107
                $this->_platform->getIntegerTypeDeclarationSQL(
108
                        array('autoincrement' => true, 'primary' => true)
109
        ));
110
    }
111
112
    public function testGeneratesTypeDeclarationsForStrings()
113
    {
114
        self::assertEquals(

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

@@ 143-159 (lines=17) @@
140
        self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar'));
141
    }
142
143
    public function testGeneratesTypeDeclarationForIntegers()
144
    {
145
        self::assertEquals(
146
            'NUMBER(10)',
147
            $this->_platform->getIntegerTypeDeclarationSQL(array())
148
        );
149
        self::assertEquals(
150
            'NUMBER(10)',
151
            $this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true)
152
            ));
153
        self::assertEquals(
154
            'NUMBER(10)',
155
            $this->_platform->getIntegerTypeDeclarationSQL(
156
                array('autoincrement' => true, 'primary' => true)
157
            ));
158
    }
159
160
    public function testGeneratesTypeDeclarationsForStrings()
161
    {
162
        self::assertEquals(

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

@@ 147-163 (lines=17) @@
144
        self::assertEquals(array('CREATE TABLE autoinc_table (id SERIAL NOT NULL)'), $this->_platform->getCreateTableSQL($table));
145
    }
146
147
    public function testGeneratesTypeDeclarationForIntegers()
148
    {
149
        self::assertEquals(
150
            'INT',
151
            $this->_platform->getIntegerTypeDeclarationSQL(array())
152
        );
153
        self::assertEquals(
154
            'SERIAL',
155
            $this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true)
156
        ));
157
        self::assertEquals(
158
            'SERIAL',
159
            $this->_platform->getIntegerTypeDeclarationSQL(
160
                array('autoincrement' => true, 'primary' => true)
161
        ));
162
    }
163
164
    public function testGeneratesTypeDeclarationForStrings()
165
    {
166
        self::assertEquals(

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

@@ 86-102 (lines=17) @@
83
        self::assertEquals('DROP TABLE foobar', $this->_platform->getDropTableSQL('foobar'));
84
    }
85
86
    public function testGeneratesTypeDeclarationForIntegers()
87
    {
88
        self::assertEquals(
89
            'INT',
90
            $this->_platform->getIntegerTypeDeclarationSQL(array())
91
        );
92
        self::assertEquals(
93
            'INT AUTO_INCREMENT',
94
            $this->_platform->getIntegerTypeDeclarationSQL(array('autoincrement' => true)
95
        ));
96
        self::assertEquals(
97
            'INT AUTO_INCREMENT',
98
            $this->_platform->getIntegerTypeDeclarationSQL(
99
                array('autoincrement' => true, 'primary' => true)
100
        ));
101
    }
102
103
    public function testGeneratesTypeDeclarationForStrings()
104
    {
105
        self::assertEquals(