Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 125-134 (lines=10) @@
122
        $this->assertSame(['one', 'two', 'three'], $article->paragraphs);
123
    }
124
125
    private function persistAndReloadArticle(Article $article)
126
    {
127
        $article->id = 'article';
128
        $this->entityManager->persist($article);
129
        $this->entityManager->flush();
130
131
        $this->entityManager->clear();
132
133
        return $this->entityManager->find(Article::class, 'article');
134
    }
135
}
136

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

@@ 235-244 (lines=10) @@
232
        $this->assertSame([12, 13, 14], $article->numbers);
233
    }
234
235
    private function persistAndReloadArticle(Article $article)
236
    {
237
        $article->id = '/test/article';
238
        $this->documentManager->persist($article);
239
        $this->documentManager->flush();
240
241
        $this->documentManager->clear();
242
243
        return $this->documentManager->find(Article::class, '/test/article');
244
    }
245
}
246