php-src/ext/reflection/tests/ReflectionClass_isArray.phpt
2016-02-05 13:50:06 -02:00

25 lines
550 B
PHP

--TEST--
public bool ReflectionParameter::isArray ( void );
--CREDITS--
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br
--FILE--
<?php
function testReflectionIsArray($a = null, $b = 0, array $c, $d=true, array $e, $f=1.5, $g="", array $h, $i="#F989898") {}
$reflection = new ReflectionFunction('testReflectionIsArray');
foreach ($reflection->getParameters() as $parameter) {
var_dump($parameter->isArray());
}
?>
--EXPECT--
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
bool(false)
bool(false)
bool(true)
bool(false)