xref: /PHP-7.4/tests/lang/003.phpt (revision 782352c5)
1--TEST--
2Simple Switch Test
3--FILE--
4<?php
5$a=1;
6switch($a) {
7	case 0:
8		echo "bad";
9		break;
10	case 1:
11		echo "good";
12		break;
13	default:
14		echo "bad";
15		break;
16}
17?>
18--EXPECT--
19good
20