summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt
blob: 19c95789803dc4cf1ba8b4a2d4cdc0818dd4e8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Reflection::isClosure
--CREDITS--
Stefan Koopmanschap <stefan@phpgg.nl>
TestFest PHP|Tek
--SKIPIF--
<?php
if (!extension_loaded('reflection')) print 'skip';
?>
--FILE--
<?php
$closure = function($param) { return "this is a closure"; };
$rc = new ReflectionFunction($closure);
var_dump($rc->isClosure());
--EXPECTF--
bool(true)