Code Duplication    Length = 12-12 lines in 2 locations

tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php 1 location

@@ 335-346 (lines=12) @@
332
     * @depends testProperties
333
     * @param ClassMetadata $class
334
     */
335
    public function testIdentifier($class)
336
    {
337
        self::assertNotNull($class->getProperty('id'));
338
339
        $property = $class->getProperty('id');
340
341
        self::assertEquals('integer', $property->getTypeName());
342
        self::assertEquals(['id'], $class->identifier);
343
        self::assertEquals(Mapping\GeneratorType::AUTO, $property->getValueGenerator()->getType(), "ID-Generator is not GeneratorType::AUTO");
344
345
        return $class;
346
    }
347
348
    /**
349
     * @group #6129

tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php 1 location

@@ 174-185 (lines=12) @@
171
     * @depends testTypeIsExported
172
     * @param ClassMetadata $class
173
     */
174
    public function testIdentifierIsExported($class)
175
    {
176
        self::assertNotNull($class->getProperty('id'));
177
178
        $property = $class->getProperty('id');
179
180
        self::assertTrue($property->isPrimaryKey());
181
        self::assertEquals(['id'], $class->identifier);
182
        self::assertEquals(GeneratorType::IDENTITY, $class->getProperty('id')->getValueGenerator()->getType(), "Generator Type wrong");
183
184
        return $class;
185
    }
186
187
    /**
188
     * @depends testIdentifierIsExported