diff options
Diffstat (limited to 'Zend/tests/closure_029.phpt')
-rw-r--r-- | Zend/tests/closure_029.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/closure_029.phpt b/Zend/tests/closure_029.phpt new file mode 100644 index 0000000..8d909c0 --- /dev/null +++ b/Zend/tests/closure_029.phpt @@ -0,0 +1,14 @@ +--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) |