xref: /PHP-8.1/Zend/tests/match/009.phpt (revision 853eb837)
1--TEST--
2Pretty printing for match expression
3--INI--
4assert.exception=0
5--FILE--
6<?php
7
8assert((function () {
9    match ('foo') {
10        'foo', 'bar' => false,
11        'baz' => 'a',
12        default => 'b',
13    };
14})());
15
16?>
17--EXPECTF--
18Warning: assert(): assert(function () {
19    match ('foo') {
20        'foo', 'bar' => false,
21        'baz' => 'a',
22        default => 'b',
23    };
24}()) failed in %s on line %d
25