/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/bug33312.phpt
20 строк
419 B
Xinchen Hui
Remove executable permission on phpt
10 окт 2012, 06:27
10 окт 2012, 06:27
610c7fb
Код
Авторство
О чём код?
--TEST-- Reflection Bug #33312 (ReflectionParameter methods do not work correctly) --FILE-- <?php class Foo { public function bar(Foo $foo, $bar = 'bar') { } } $class = new ReflectionClass('Foo'); $method = $class->getMethod('bar'); foreach ($method->getParameters() as $parameter) { if ($parameter->isDefaultValueAvailable()) { print $parameter->getDefaultValue()."\n"; } } ?> --EXPECT-- bar