Code Duplication    Length = 14-14 lines in 3 locations

tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php 3 locations

@@ 1145-1158 (lines=14) @@
1142
     * @group DDC-514
1143
     * @group DDC-1015
1144
     */
1145
    public function testDiscriminatorColumnDefaultLength()
1146
    {
1147
        if (strpos(get_class($this), 'PHPMappingDriver') !== false) {
1148
            $this->markTestSkipped('PHP Mapping Drivers have no defaults.');
1149
        }
1150
1151
        $class = $this->createClassMetadata(SingleTableEntityNoDiscriminatorColumnMapping::class);
1152
1153
        self::assertEquals(255, $class->discriminatorColumn->getLength());
1154
1155
        $class = $this->createClassMetadata(SingleTableEntityIncompleteDiscriminatorColumnMapping::class);
1156
1157
        self::assertEquals(255, $class->discriminatorColumn->getLength());
1158
    }
1159
1160
    /**
1161
     * @group DDC-514
@@ 1164-1177 (lines=14) @@
1161
     * @group DDC-514
1162
     * @group DDC-1015
1163
     */
1164
    public function testDiscriminatorColumnDefaultType()
1165
    {
1166
        if (strpos(get_class($this), 'PHPMappingDriver') !== false) {
1167
            $this->markTestSkipped('PHP Mapping Drivers have no defaults.');
1168
        }
1169
1170
        $class = $this->createClassMetadata(SingleTableEntityNoDiscriminatorColumnMapping::class);
1171
1172
        self::assertEquals('string', $class->discriminatorColumn->getTypeName());
1173
1174
        $class = $this->createClassMetadata(SingleTableEntityIncompleteDiscriminatorColumnMapping::class);
1175
1176
        self::assertEquals('string', $class->discriminatorColumn->getTypeName());
1177
    }
1178
1179
    /**
1180
     * @group DDC-514
@@ 1183-1196 (lines=14) @@
1180
     * @group DDC-514
1181
     * @group DDC-1015
1182
     */
1183
    public function testDiscriminatorColumnDefaultName()
1184
    {
1185
        if (strpos(get_class($this), 'PHPMappingDriver') !== false) {
1186
            $this->markTestSkipped('PHP Mapping Drivers have no defaults.');
1187
        }
1188
1189
        $class = $this->createClassMetadata(SingleTableEntityNoDiscriminatorColumnMapping::class);
1190
1191
        self::assertEquals('dtype', $class->discriminatorColumn->getColumnName());
1192
1193
        $class = $this->createClassMetadata(SingleTableEntityIncompleteDiscriminatorColumnMapping::class);
1194
1195
        self::assertEquals('dtype', $class->discriminatorColumn->getColumnName());
1196
    }
1197
}
1198
1199
/**