php-src/ext/reflection/tests/018.phpt
2012-10-10 10:27:49 +08:00

16 lines
309 B
PHP

--TEST--
Reflection::getModifierNames
--SKIPIF--
<?php extension_loaded('reflection') or die('skip'); ?>
--FILE--
<?php
var_dump(Reflection::getModifierNames(ReflectionMethod::IS_FINAL | ReflectionMethod::IS_PROTECTED));
?>
--EXPECT--
array(2) {
[0]=>
string(5) "final"
[1]=>
string(9) "protected"
}