test to function ReflectionParameter::isArray

was created a new test uncovered yet!
:-)
This commit is contained in:
marcosptf 2016-02-05 12:21:10 -02:00
parent 81721a7ddd
commit 2c7341ca16

View File

@ -0,0 +1,29 @@
--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());
}
?>
--CLEAN--
<?php
unset($reflection);
unset($parameter);
?>
--EXPECT--
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
bool(false)
bool(false)
bool(true)
bool(false)