Code Duplication    Length = 10-10 lines in 2 locations

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

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

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