/** * For collections and sets. * * @test */ public function partCheckingShouldBeCorrect() { $collection1 = new IteratorCollection(new \ArrayIterator(array(1, 2, 3, 3))); $collection2 = new IteratorCollection(new \ArrayIterator(array(1, 2, 3, 3, 3, 4, 5, 5))); assertTrue($collection1->isPartOf($collection2)); }