/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/spl_iterator_iterator_constructor.phpt
24 строки
665 B
Máté Kocsis
Improve error messages mentioning parameters instead of arguments
09 сен 2020, 11:47
Не верифицирован
09 сен 2020, 11:47
9975986
Код
Авторство
О чём код?
--TEST-- SPL: IteratorInterator constructor checks --CREDITS-- Sean Burlington www.practicalweb.co.uk TestFest London May 2009 --FILE-- <?php $array = array(array(7,8,9),1,2,3,array(4,5,6)); $arrayIterator = new ArrayIterator($array); try { $test = new IteratorIterator($arrayIterator); $test = new IteratorIterator($arrayIterator, 1); $test = new IteratorIterator($arrayIterator, 1, 1); $test = new IteratorIterator($arrayIterator, 1, 1, 1); $test = new IteratorIterator($arrayIterator, 1, 1, 1, 1); } catch (TypeError $e){ echo $e->getMessage() . "\n"; } ?> --EXPECT-- IteratorIterator::__construct() expects at most 2 arguments, 3 given