public function testToArray() { $arrayIterator = new ArrayIterator(array(1, 2, 3)); $this->assertSame(array(1, 2, 3), $arrayIterator->toArray()); }