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