summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionFunction_isClosure_basic.phpt
blob: df101fcd3ee4a169eb0a52f24f458ab725b9d9e2 (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)