Security update for Core, with self-updated composer
[yaffs-website] / vendor / nikic / php-parser / test / code / prettyPrinter / stmt / multiCatch.test
diff --git a/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test b/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test
new file mode 100644 (file)
index 0000000..8e3f12b
--- /dev/null
@@ -0,0 +1,19 @@
+Multi catch
+-----
+<?php
+try {
+    $x;
+} catch (X|Y $e1) {
+    $y;
+} catch (\A|B\C $e2) {
+    $z;
+}
+-----
+!!php7
+try {
+    $x;
+} catch (X|Y $e1) {
+    $y;
+} catch (\A|B\C $e2) {
+    $z;
+}
\ No newline at end of file