xref: /PHP-5.3/Zend/tests/closure_023.phpt (revision 610c7fbe)
1--TEST--
2Closure 023: Closure declared in statically called method
3--FILE--
4<?php
5class foo {
6    public static function bar() {
7        $func = function() { echo "Done"; };
8        $func();
9    }
10}
11foo::bar();
12--EXPECT--
13Done
14
15