/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug37964.phpt
50 строк
754 B
Nikita Popov
Reindent phpt files
04 фев 2020, 00:52
04 фев 2020, 00:52
f8d7958
Код
Авторство
О чём код?
--TEST-- Reflection Bug #37964 (Reflection shows private methods of parent class) --FILE-- <?php abstract class foobar { private function test2() { } } class foo extends foobar { private $foo = 1; private function test() { } protected function test3() { } } class bar extends foo { private function foobar() { } } echo new ReflectionClass(new bar); ?> --EXPECTF-- Class [ <user> class bar extends foo ] { @@ %s %s - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [2] { Method [ <user> private method foobar ] { @@ %s %d - %d } Method [ <user, inherits foo> protected method test3 ] { @@ %s %d - %d } } }