summaryrefslogtreecommitdiff
path: root/Zend/tests/match/005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/match/005.phpt')
-rw-r--r--Zend/tests/match/005.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/match/005.phpt b/Zend/tests/match/005.phpt
new file mode 100644
index 0000000000..cc72739f43
--- /dev/null
+++ b/Zend/tests/match/005.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Match expression discarding result
+--FILE--
+<?php
+
+match (1) {
+ 1 => print "Executed\n",
+};
+
+?>
+--EXPECT--
+Executed