1--TEST--
2Pretty printing for match expression
3--INI--
4zend.assertions=1
5--FILE--
6<?php
7
8try {
9assert((function () {
10    match ('foo') {
11        'foo', 'bar' => false,
12        'baz' => 'a',
13        default => 'b',
14    };
15})());
16} catch (AssertionError $e) {
17    echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
18}
19
20?>
21--EXPECTF--
22assert(): assert(function () {
23    match ('foo') {
24        'foo', 'bar' => false,
25        'baz' => 'a',
26        default => 'b',
27    };
28}()) failed
29