mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
16 lines
309 B
Plaintext
16 lines
309 B
Plaintext
|
--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"
|
||
|
}
|