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