mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
test to function ReflectionParameter::isArray
was created a new test uncovered yet! :-)
This commit is contained in:
parent
81721a7ddd
commit
2c7341ca16
29
ext/reflection/tests/ReflectionClass_isArray.phpt
Normal file
29
ext/reflection/tests/ReflectionClass_isArray.phpt
Normal 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)
|
Loading…
Reference in New Issue
Block a user