/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/spl/tests/bug44144.phpt
23 строки
423 B
Gabriel Caruso
Remove superfluous SKIPIF sections in SPL tests
03 фев 2018, 19:50
03 фев 2018, 19:50
766ce8b
Код
Авторство
О чём код?
--TEST-- Bug #44144 (spl_autoload_functions() should return object instance when appropriate) --FILE-- <?php class Foo { public function nonstaticMethod() {} } $foo = new Foo; spl_autoload_register(array($foo, 'nonstaticMethod')); $funcs = spl_autoload_functions(); var_dump($funcs); ?> --EXPECTF-- array(1) { [0]=> array(2) { [0]=> object(Foo)#%d (0) { } [1]=> string(15) "nonstaticMethod" } }