summaryrefslogtreecommitdiff
path: root/tests/lang/005.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/005.phpt')
-rw-r--r--tests/lang/005.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/lang/005.phpt b/tests/lang/005.phpt
new file mode 100644
index 0000000..404a7cb
--- /dev/null
+++ b/tests/lang/005.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Simple If/ElseIf/Else Test
+--FILE--
+<?php
+$a=1;
+
+if($a==0) {
+ echo "bad";
+} elseif($a==3) {
+ echo "bad";
+} else {
+ echo "good";
+}
+?>
+--EXPECT--
+good