Code Duplication    Length = 7-8 lines in 2 locations

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

@@ 48-55 (lines=8) @@
45
     * @expectedException \Doctrine\ORM\Cache\CacheException
46
     * @expectedExceptionMessage Entity association field "Doctrine\Tests\ORM\Mapping\XMLSLC#foo" not configured as part of the second-level cache.
47
     */
48
    public function testFailingSecondLevelCacheAssociation()
49
    {
50
        $mappingDriver = $this->loadDriver();
51
52
        $class = new ClassMetadata(XMLSLC::class, $this->metadataBuildingContext);
53
54
        $mappingDriver->loadMetadataForClass(XMLSLC::class, $class, $this->metadataBuildingContext);
55
    }
56
57
    public function testIdentifierWithAssociationKey()
58
    {

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

@@ 39-45 (lines=7) @@
36
     * @expectedException \Doctrine\ORM\Cache\CacheException
37
     * @expectedExceptionMessage Entity association field "Doctrine\Tests\ORM\Mapping\AnnotationSLC#foo" not configured as part of the second-level cache.
38
     */
39
    public function testFailingSecondLevelCacheAssociation()
40
    {
41
        $mappingDriver = $this->loadDriver();
42
43
        $class = new ClassMetadata(AnnotationSLC::class, $this->metadataBuildingContext);
44
        $mappingDriver->loadMetadataForClass(AnnotationSLC::class, $class, $this->metadataBuildingContext);
45
    }
46
47
    /**
48
     * @group DDC-268