summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_023.phpt
blob: 634fb6dd505c6353a12f407071bc6b2c2326eb6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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