Annotation of embedaddon/php/ext/reflection/tests/ReflectionParameter_export_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: ReflectionParameter::export() without parameters
3: --CREDITS--
4: Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
5: --FILE--
6: <?php
7: function ReflectionParameterTest($test, $test2 = null) {
8: echo $test;
9: }
10: $reflect = new ReflectionFunction('ReflectionParameterTest');
11: foreach($reflect->getParameters() as $key => $value) {
12: ReflectionParameter::export();
13: }
14: ?>
15: ==DONE==
16: --EXPECTF--
17:
18: Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
19:
20: Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
21: ==DONE==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>