summaryrefslogtreecommitdiff
path: root/Zend/tests/match/009.phpt
blob: 4d5b4a540f9106bead9532e53d592ac1c25a0814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Pretty printing for match expression
--INI--
assert.exception=0
--FILE--
<?php

assert((function () {
    match ('foo') {
        'foo', 'bar' => false,
        'baz' => 'a',
        default => 'b',
    };
})());

?>
--EXPECTF--
Warning: assert(): assert(function () {
    match ('foo') {
        'foo', 'bar' => false,
        'baz' => 'a',
        default => 'b',
    };
}()) failed in %s on line %d