summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt')
-rw-r--r--ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt
index e32790c923..b8b969b0bc 100644
--- a/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt
+++ b/ext/reflection/tests/ReflectionFunction_getClosureScopeClass.phpt
@@ -1,10 +1,6 @@
--TEST--
Reflection::getClosureScopeClass()
---SKIPIF--
-<?php
-if (!extension_loaded('reflection')) print 'skip';
-?>
---FILE--
+--FILE--
<?php
$closure = function($param) { return "this is a closure"; };
$rf = new ReflectionFunction($closure);
@@ -20,6 +16,7 @@ $closure = A::getClosure();
$rf = new ReflectionFunction($closure);
var_dump($rf->getClosureScopeClass());
echo "Done!\n";
+?>
--EXPECTF--
NULL
object(ReflectionClass)#%d (1) {