1--TEST-- 2Reflection::getModifierNames() basic 3--FILE-- 4<?php 5 6function printModifiers($modifiers) { 7 echo implode(',', Reflection::getModifierNames($modifiers)), PHP_EOL; 8} 9 10printModifiers(ReflectionProperty::IS_PRIVATE); 11printModifiers(ReflectionProperty::IS_PROTECTED | ReflectionProperty::IS_STATIC); 12printModifiers(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_READONLY); 13printModifiers(ReflectionClass::IS_EXPLICIT_ABSTRACT); 14printModifiers(ReflectionMethod::IS_ABSTRACT | ReflectionMethod::IS_FINAL); 15printModifiers(ReflectionProperty::IS_PUBLIC | ReflectionProperty::IS_STATIC | ReflectionProperty::IS_READONLY); 16?> 17--EXPECT-- 18private 19protected,static 20public,readonly 21abstract 22abstract,final 23public,static,readonly 24