/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug30209.phpt
29 строк
514 B
Nikita Popov
Reindent phpt files
04 фев 2020, 00:52
04 фев 2020, 00:52
f8d7958
Код
Авторство
О чём код?
--TEST-- Reflection Bug #30209 (ReflectionClass::getMethod() lowercases attribute) --FILE-- <?php class Foo { private $name = 'testBAR'; public function testBAR() { try { $class = new ReflectionClass($this); var_dump($this->name); $method = $class->getMethod($this->name); var_dump($this->name); } catch (Exception $e) {} } } $foo = new Foo; $foo->testBAR(); ?> --EXPECT-- string(7) "testBAR" string(7) "testBAR"