Code Duplication    Length = 11-13 lines in 2 locations

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

@@ 93-103 (lines=11) @@
90
        $this->assertEquals(new \DateTime('2016-01-01 00:00:00'), $article->date);
91
    }
92
93
    public function testObject()
94
    {
95
        $article = new Article();
96
        $article->image = $this->createImage(
97
            '/path/to/image', 100, 200, 'image/jpeg'
98
        );
99
        $article = $this->persistAndReloadArticle($article);
100
        $this->assertInstanceOf(Image::class, $article->image);
101
        $this->assertEquals(100, $article->image->width);
102
        $this->assertEquals('image/jpeg', $article->image->mimetype);
103
    }
104
105
    public function testReference()
106
    {

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

@@ 160-172 (lines=13) @@
157
    }
158
159
160
    public function testObject()
161
    {
162
        $this->initGeneralArticle();
163
164
        $article = new Article();
165
        $article->image = $this->createImage(
166
            '/path/to/image', 100, 200, 'image/jpeg'
167
        );
168
        $article = $this->persistAndReloadArticle($article);
169
        $this->assertInstanceOf(Image::class, $article->image);
170
        $this->assertEquals(100, $article->image->width);
171
        $this->assertEquals('image/jpeg', $article->image->mimetype);
172
    }
173
174
    public function testObjectCollection()
175
    {