/** * @test */ public function findShouldReturnsUniqueResults() { $mockFirstFinder = $this->getFinderInterfaceMock(array('KnpLabs/KnpBundles', 'test/TestBundle')); $mockSecondFinder = $this->getFinderInterfaceMock(array('KnpLabs/KnpBundles', 'test2/TestBundle')); $finder = new Aggregate(array($mockFirstFinder, $mockSecondFinder)); $this->assertCount(3, $finder->find()); }