diff --git a/Zend/tests/arrow_functions/010.phpt b/Zend/tests/arrow_functions/010.phpt new file mode 100644 index 0000000000000..d4b19efc6f20b --- /dev/null +++ b/Zend/tests/arrow_functions/010.phpt @@ -0,0 +1,91 @@ +--TEST-- +Arrow functions auto-capture variables, by value. +--FILE-- + +--EXPECT-- +int(0) +bool(true) +int(1) +int(0) +int(2) +int(3) +int(2) +int(3) +int(3) +int(3) +int(5) +int(5) +int(5) +int(7) +bool(false) +int(7) +int(8) +bool(false) +int(8) +int(10) +int(10) +int(10)