public function testIsTraversable() { $collection = InMemory::fromArray(['one', 'two', 'three']); $items = array(); foreach ($collection as $item) { $items[] = $item; } $this->assertEquals(array('one', 'two', 'three'), $items); }