Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/php-static-scanner-instrumentalization.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test')
-rw-r--r--vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test b/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test
new file mode 100644
index 0000000..7e4fcfd
--- /dev/null
+++ b/vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test
@@ -0,0 +1,18 @@
+Closures
+-----
+<?php
+
+$closureWithArgs = function ($arg1, $arg2) {
+ $comment = 'closure body';
+};
+
+$closureWithArgsAndVars = function ($arg1, $arg2) use($var1, $var2) {
+ $comment = 'closure body';
+};
+-----
+$closureWithArgs = function ($arg1, $arg2) {
+ $comment = 'closure body';
+};
+$closureWithArgsAndVars = function ($arg1, $arg2) use($var1, $var2) {
+ $comment = 'closure body';
+}; \ No newline at end of file