1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/tests/classes/abstract_user_call.phpt
T
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

33 lines
498 B
PHP

--TEST--
ZE2 An abstrcat method cannot be called indirectly
--FILE--
<?php
abstract class test_base
{
abstract function func();
}
class test extends test_base
{
function func()
{
echo __METHOD__ . "()\n";
}
}
$o = new test;
$o->func();
try {
call_user_func(array($o, 'test_base::func'));
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
test::func()
call_user_func() expects parameter 1 to be a valid callback, cannot call abstract method test_base::func()