/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/reflection/tests/ReflectionMethod_006.phpt
23 строки
549 B
Máté Kocsis
Refactor ReflectionMethod::__construct()
11 сен 2020, 11:59
Не верифицирован
11 сен 2020, 11:59
a59923b
Код
Авторство
О чём код?
--TEST-- ReflectionMethod methods - wrong num args --CREDITS-- Robin Fernandes <robinf@php.net> Steve Seear <stevseea@php.net> --FILE-- <?php try { new ReflectionMethod(); } catch (ArgumentCountError $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } try { new ReflectionMethod('a', 'b', 'c'); } catch (ArgumentCountError $re) { echo "Ok - ".$re->getMessage().PHP_EOL; } ?> --EXPECT-- Ok - ReflectionMethod::__construct() expects at least 1 argument, 0 given Ok - ReflectionMethod::__construct() expects at most 2 arguments, 3 given