public function testToIter()
{
$iter = new \ArrayIterator([1, 2, 3]);
$this->assertSame($iter, toIter($iter));
$iter = toIter(new \ArrayObject([1, 2, 3]));
$this->assertInstanceOf('Iterator', $iter);
$this->assertSame([1, 2, 3], toArray($iter));
$iter = toIter([1, 2, 3]);
$this->assertInstanceOf('ArrayIterator', $iter);
$this->assertSame([1, 2, 3], toArray($iter));
}