php-src/Zend/tests/closure_029.phpt
2008-07-28 14:10:00 +00:00

15 lines
281 B
PHP

--TEST--
Closure 029: Testing lambda with instanceof operator
--FILE--
<?php
var_dump(function() { } instanceof closure);
var_dump(function(&$x) { } instanceof closure);
var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)