1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/tests/lang/engine_assignExecutionOrder_007.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

42 lines
566 B
PHP

--TEST--
Check key execution order with new.
--FILE--
<?php
$a[2][3] = 'stdClass';
$a[$i=0][++$i] = new $a[++$i][++$i];
print_r($a);
$o = new stdClass;
$o->a = new $a[$i=2][++$i];
$o->a->b = new $a[$i=2][++$i];
print_r($o);
?>
--EXPECT--
Array
(
[2] => Array
(
[3] => stdClass
)
[0] => Array
(
[1] => stdClass Object
(
)
)
)
stdClass Object
(
[a] => stdClass Object
(
[b] => stdClass Object
(
)
)
)