/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/traits002.phpt
54 строки
556 B
Nikita Popov
Deprecate Reflection export() methods
22 июл 2019, 12:39
22 июл 2019, 12:39
3121b71
Код
Авторство
О чём код?
--TEST-- ReflectionClass and Traits --FILE-- <?php abstract class foo { } trait bar { } echo new ReflectionClass('foo'), "\n"; echo new ReflectionClass('bar'), "\n"; ?> --EXPECTF-- Class [ <user> abstract class foo ] { @@ %s 3-4 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } } Trait [ <user> trait bar ] { @@ %s 6-8 - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [0] { } }