1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 11:32:11 +02:00
Files
archived-php-src/ext/spl/tests/AppendIterator_invalid_ctor.phpt
2020-07-17 16:42:56 +02:00

15 lines
333 B
PHP

--TEST--
AppendIterator::__construct() with invalid arguments
--FILE--
<?php
new AppendIterator(null);
?>
--EXPECTF--
Fatal error: Uncaught ArgumentCountError: AppendIterator::__construct() expects exactly 0 parameters, 1 given in %s:%d
Stack trace:
#0 %s(%d): AppendIterator->__construct(NULL)
#1 {main}
thrown in %s on line %d