mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
22 lines
592 B
Plaintext
22 lines
592 B
Plaintext
|
--TEST--
|
||
|
ReflectionParameter::export() without parameters
|
||
|
--CREDITS--
|
||
|
Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function ReflectionParameterTest($test, $test2 = null) {
|
||
|
echo $test;
|
||
|
}
|
||
|
$reflect = new ReflectionFunction('ReflectionParameterTest');
|
||
|
foreach($reflect->getParameters() as $key => $value) {
|
||
|
ReflectionParameter::export();
|
||
|
}
|
||
|
?>
|
||
|
==DONE==
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
|
||
|
|
||
|
Warning: ReflectionParameter::export() expects at least 2 parameters, 0 given in %s.php on line %d
|
||
|
==DONE==
|