Code Duplication    Length = 11-13 lines in 2 locations

bridge/doctrine-orm/tests/Functional/GeneralTest.php 1 location

@@ 74-84 (lines=11) @@
71
        $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date);
72
    }
73
74
    public function testObject()
75
    {
76
        $article = new Article();
77
        $article->image = $this->createImage(
78
            '/path/to/image', 100, 200, 'image/jpeg'
79
        );
80
        $article = $this->persistAndReloadArticle($article);
81
        $this->assertInstanceOf(Image::class, $article->image);
82
        $this->assertEquals(100, $article->image->width);
83
        $this->assertEquals('image/jpeg', $article->image->mimetype);
84
    }
85
86
    public function testReference()
87
    {

bridge/doctrine-phpcr-odm/tests/Functional/GeneralTest.php 1 location

@@ 133-145 (lines=13) @@
130
        $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date);
131
    }
132
133
    public function testObject()
134
    {
135
        $this->initGeneralArticle();
136
137
        $article = new Article();
138
        $article->image = $this->createImage(
139
            '/path/to/image', 100, 200, 'image/jpeg'
140
        );
141
        $article = $this->persistAndReloadArticle($article);
142
        $this->assertInstanceOf(Image::class, $article->image);
143
        $this->assertEquals(100, $article->image->width);
144
        $this->assertEquals('image/jpeg', $article->image->mimetype);
145
    }
146
147
    public function testObjectCollection()
148
    {