php-src/Zend/tests/closure_023.phpt

15 lines
228 B
Plaintext
Raw Normal View History

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