xref: /PHP-8.4/Zend/tests/match/024.phpt (revision d5a03708)
1--TEST--
2Test match strict comparison with false expression
3--FILE--
4<?php
5
6function wrong() {
7    throw new Exception();
8}
9
10echo match (false) {
11    '' => wrong(),
12    [] => wrong(),
13    0 => wrong(),
14    0.0 => wrong(),
15    false => "false\n",
16};
17
18?>
19--EXPECT--
20false
21