getRepository('Phraseanet:BasketParticipant'); /* @var $repo Alchemy\Phrasea\Model\Repositories\BasketParticipantRepository */ $participants = $repo->findNotConfirmedAndNotRemindedParticipantsByTimeLeftPercent(20, new \DateTime()); $this->assertEquals(3, count($participants)); } }