summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionFunction_getClosureThis.phpt
blob: 479502579829746fc8c0db1c27adadbac2cb6591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--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!