diff options
Diffstat (limited to 'vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test')
-rw-r--r-- | vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test | 19 |
1 files changed, 19 insertions, 0 deletions
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 index 0000000..8e3f12b --- /dev/null +++ b/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/multiCatch.test @@ -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 |