xref: /PHP-8.3/Zend/tests/match/006.phpt (revision 05ef6334)
1--TEST--
2Match expression with no cases
3--FILE--
4<?php
5
6$x = match (true) {};
7
8?>
9--EXPECTF--
10Fatal error: Uncaught UnhandledMatchError: Unhandled match case true in %s:%d
11Stack trace:
12#0 {main}
13  thrown in %s on line %d
14