php-src/ext/reflection/tests/ReflectionFunction_getExtension.phpt
2008-05-11 04:57:09 +00:00

20 lines
337 B
PHP

--TEST--
ReflectionFunction::getExtension()
--FILE--
<?php
function foo () {}
$function = new ReflectionFunction('sort');
var_dump($function->getExtension());
$function = new ReflectionFunction('foo');
var_dump($function->getExtension());
?>
--EXPECTF--
object(ReflectionExtension)#%i (1) {
["name"]=>
string(8) "standard"
}
NULL