mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
25 lines
550 B
PHP
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)
|