Code Duplication    Length = 14-14 lines in 2 locations

tests/Doctrine/Tests/ORM/QueryBuilderTest.php 2 locations

@@ 633-646 (lines=14) @@
630
    }
631
632
633
    public function testGetParameters()
634
    {
635
        $qb = $this->_em->createQueryBuilder();
636
        $qb->select('u')
637
           ->from(CmsUser::class, 'u')
638
           ->where('u.id = :id');
639
640
        $parameters = new ArrayCollection();
641
        $parameters->add(new Parameter('id', 1));
642
643
        $qb->setParameters($parameters);
644
645
        $this->assertEquals($parameters, $qb->getParameters());
646
    }
647
648
    public function testGetParameter()
649
    {
@@ 648-661 (lines=14) @@
645
        $this->assertEquals($parameters, $qb->getParameters());
646
    }
647
648
    public function testGetParameter()
649
    {
650
        $qb = $this->_em->createQueryBuilder()
651
            ->select('u')
652
            ->from(CmsUser::class, 'u')
653
            ->where('u.id = :id');
654
655
        $parameters = new ArrayCollection();
656
        $parameters->add(new Parameter('id', 1));
657
658
        $qb->setParameters($parameters);
659
660
        $this->assertEquals($parameters->first(), $qb->getParameter('id'));
661
    }
662
663
    public function testMultipleWhere()
664
    {