Code Duplication    Length = 11-11 lines in 2 locations

tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php 2 locations

@@ 764-774 (lines=11) @@
761
    /**
762
     * @group DDC-1637
763
     */
764
    public function testMatchingCriteriaInComparison()
765
    {
766
        $this->loadFixture();
767
768
        $repository = $this->_em->getRepository(CmsUser::class);
769
        $users = $repository->matching(new Criteria(
770
            Criteria::expr()->in('username', ['beberlei', 'gblanco'])
771
        ));
772
773
        $this->assertEquals(2, count($users));
774
    }
775
776
    /**
777
     * @group DDC-1637
@@ 779-789 (lines=11) @@
776
    /**
777
     * @group DDC-1637
778
     */
779
    public function testMatchingCriteriaNotInComparison()
780
    {
781
        $this->loadFixture();
782
783
        $repository = $this->_em->getRepository(CmsUser::class);
784
        $users = $repository->matching(new Criteria(
785
            Criteria::expr()->notIn('username', ['beberlei', 'gblanco', 'asm89'])
786
        ));
787
788
        $this->assertEquals(1, count($users));
789
    }
790
791
    /**
792
     * @group DDC-1637