1--TEST--
2Reflection::getClosureScopeClass()
3--FILE--
4<?php
5$closure = function($param) { return "this is a closure"; };
6$rf = new ReflectionFunction($closure);
7var_dump($rf->getClosureScopeClass());
8
9Class A {
10    public static function getClosure() {
11        return function($param) { return "this is a closure"; };
12    }
13}
14
15$closure = A::getClosure();
16$rf = new ReflectionFunction($closure);
17var_dump($rf->getClosureScopeClass());
18echo "Done!\n";
19?>
20--EXPECTF--
21NULL
22object(ReflectionClass)#%d (1) {
23  ["name"]=>
24  string(1) "A"
25}
26Done!
27