/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/ReflectionConstant_getAttributes_empty.phpt
24 строки
499 B
DanielEScherzer
[RFC] Add support for attributes on compile-time constants
29 апр 2025, 21:53
Не верифицирован
29 апр 2025, 21:53
3f03f7e
Код
Авторство
О чём код?
--TEST-- ReflectionConstant::getAttributes() when there are none --FILE-- <?php $reflectionConstant = new ReflectionConstant('E_ERROR'); var_dump($reflectionConstant->getAttributes()); define('RT_CONST', 42); $reflectionConstant = new ReflectionConstant('RT_CONST'); var_dump($reflectionConstant->getAttributes()); const CT_CONST = 43; $reflectionConstant = new ReflectionConstant('CT_CONST'); var_dump($reflectionConstant->getAttributes()); ?> --EXPECT-- array(0) { } array(0) { } array(0) { }