summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_023.phpt
blob: a91d357c062331b3ea6148a9e376be7785816b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Closure 023: Closure declared in statically called method
--FILE--
<?php
class foo {
    public static function bar() {
        $func = function() { echo "Done"; };
        $func();
    }
}
foo::bar();
--EXPECT--
Done