1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 04:51:03 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/bug36011.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

47 lines
641 B
PHP

--TEST--
Bug #36011 (Strict errormsg wrong for call_user_func() and the likes)
--FILE--
<?php
class TestClass
{
static function test()
{
echo __METHOD__ . "()\n";
}
function whee()
{
array_map(array('TestClass', 'test'), array('array_value'));
}
function whee4()
{
call_user_func(array('TestClass', 'test'));
}
static function whee5()
{
call_user_func(array('TestClass', 'test'));
}
}
TestClass::test();
$a = new TestClass();
$a->whee();
$a->whee4();
$a->whee5();
TestClass::whee5();
?>
===DONE===
--EXPECT--
TestClass::test()
TestClass::test()
TestClass::test()
TestClass::test()
TestClass::test()
===DONE===