1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/Zend/tests/match/009.phpt
T
2020-08-02 13:39:35 -06:00

25 lines
411 B
PHP

--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