Annotation of embedaddon/php/ext/spl/tests/arrayObject___construct_error2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SPL: ArrayObject::__construct with too many arguments.
3: --FILE--
4: <?php
5: echo "Too many arguments:\n";
6: Class C implements Iterator {
7: function current() {}
8: function next() {}
9: function key() {}
10: function valid() {}
11: function rewind() {}
12: }
13:
14: try {
15: var_dump(new ArrayObject(new stdClass, 0, "C", "extra"));
16: } catch (InvalidArgumentException $e) {
17: echo $e->getMessage() . "(" . $e->getLine() . ")\n";
18: }
19: ?>
20: --EXPECTF--
21: Too many arguments:
22: ArrayObject::__construct() expects at most 3 parameters, 4 given(12)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>