xref: /PHP-7.4/Zend/tests/assert/expect_020.phpt (revision f7327b62)
1--TEST--
2AST pretty-printer
3--INI--
4zend.assertions=1
5assert.exception=0
6--FILE--
7<?php
8assert(0 && ($a = function () {
9	$var = 'test';
10	$str = "$var, $var[1], {$var}[], {$var[1]}[], ${var}[], ${var[1]}[]";
11}));
12?>
13--EXPECTF--
14Warning: assert(): assert(0 && ($a = function () {
15    $var = 'test';
16    $str = "$var, {$var[1]}, {$var}[], {$var[1]}[], {$var}[], {$var[1]}[]";
17})) failed in %sexpect_020.php on line %d
18