1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00
Files
archived-php-src/ext/spl/tests/recursive_tree_iterator_002.phpt
Nikita Popov 816a1fd4af Don't use quiet zpp in RecursiveIteratorIterator ctor
Don't be a special snowflake, generate a standard TypeError here.
2020-03-23 14:22:51 +01:00

15 lines
285 B
PHP

--TEST--
SPL: RecursiveTreeIterator(void)
--INI--
error_reporting=E_ALL&~E_NOTICE
--FILE--
<?php
try {
new RecursiveTreeIterator();
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
RecursiveTreeIterator::__construct() expects at least 1 parameter, 0 given