php-src/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt
2017-02-02 00:58:04 +01:00

15 lines
298 B
PHP

--TEST--
Reflection::getClosureThis()
--SKIPIF--
<?php
if (!extension_loaded('reflection')) print 'skip';
?>
--FILE--
<?php
$closure = function($param) { return "this is a closure"; };
$rf = new ReflectionFunction($closure);
var_dump($rf->getClosureThis());
echo "Done!\n";
--EXPECTF--
NULL
Done!