php-src/Zend/tests/closure_023.phpt
2012-10-10 10:27:49 +08:00

15 lines
228 B
PHP

--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