/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/ReflectionClass_getInterfaces_002.phpt
53 строки
921 B
Dmitry Stogov
Keep information about unresolved interfaces in zend_class_entry->interface_names.
23 авг 2018, 17:16
23 авг 2018, 17:16
d140df5
Код
Авторство
О чём код?
--TEST-- ReflectionClass::getInterfaces() - interface ordering. --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> --FILE-- <?php interface I1 {} interface I2 {} interface I3 {} interface I4 extends I3 {} interface I5 extends I4 {} interface I6 extends I5, I1, I2 {} interface I7 extends I6 {} $rc = new ReflectionClass('I7'); $interfaces = $rc->getInterfaces(); print_r($interfaces); ?> --EXPECT-- Array ( [I6] => ReflectionClass Object ( [name] => I6 ) [I4] => ReflectionClass Object ( [name] => I4 ) [I3] => ReflectionClass Object ( [name] => I3 ) [I2] => ReflectionClass Object ( [name] => I2 ) [I1] => ReflectionClass Object ( [name] => I1 ) [I5] => ReflectionClass Object ( [name] => I5 ) )