Code Duplication    Length = 8-9 lines in 2 locations

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

@@ 831-838 (lines=8) @@
828
        $this->contractId2 = $contract2->getId();
829
    }
830
831
    private function useCompletedContractFilter()
832
    {
833
        $conf = $this->_em->getConfiguration();
834
        $conf->addFilter("completed_contract", "\Doctrine\Tests\ORM\Functional\CompletedContractFilter");
835
        $this->_em->getFilters()
836
            ->enable("completed_contract")
837
            ->setParameter("completed", true, DBALType::BOOLEAN);
838
    }
839
840
    public function testManyToMany_ExtraLazyCountWithFilterOnSTI()
841
    {
@@ 892-900 (lines=9) @@
889
        $this->assertEquals(2, count($manager->managedContracts->slice(0, 10)));
890
    }
891
892
    private function usePersonNameFilter($name)
893
    {
894
        // Enable the filter
895
        $conf = $this->_em->getConfiguration();
896
        $conf->addFilter("person_name", "\Doctrine\Tests\ORM\Functional\CompanyPersonNameFilter");
897
        $this->_em->getFilters()
898
            ->enable("person_name")
899
            ->setParameter("name", $name, DBALType::STRING);
900
    }
901
902
    public function testManyToMany_ExtraLazyCountWithFilterOnCTI()
903
    {