1--TEST-- 2SPL: iterator_to_array() exceptions test 3--CREDITS-- 4Lance Kesson jac_kesson@hotmail.com 5#testfest London 2009-05-09 6--FILE-- 7<?php 8$array=array('a','b'); 9 10$iterator = new ArrayIterator($array); 11 12iterator_to_array('test','test'); 13 14?> 15--EXPECTF-- 16Fatal error: Uncaught TypeError: iterator_to_array(): Argument #1 ($iterator) must be of type Traversable, string given in %s:%d 17Stack trace: 18#0 %s(%d): iterator_to_array('test', 'test') 19#1 {main} 20 thrown in %s on line %d 21