php-src/Zend/tests/indirect_call_from_constant.phpt

28 lines
314 B
PHP

--TEST--
Indirect call with constants.
--FILE--
<?php
class Test
{
public static function method()
{
echo "Method called!\n";
}
}
['Test', 'method']();
'Test::method'();
(['Test', 'method'])();
('Test::method')();
?>
--EXPECT--
Method called!
Method called!
Method called!
Method called!