1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/Zend/tests/constexpr/new_dynamic_class_name.phpt
DanielEScherzer 7b8a61a18c Zend/tests: merge constant_expressions into constexpr, update names (#17872)
While reviewing the existing tests in the `constexpr` directory, I found that
some of the names were not updated to reflect the contents when the contents
were changed in #9301.

Follow-up to #15638
2025-02-21 18:37:39 +00:00

16 lines
171 B
PHP

--TEST--
Dynamic class name in new is supported
--FILE--
<?php
class Foo {}
const FOO = 'Foo';
static $x = new (FOO);
var_dump($x);
?>
--EXPECT--
object(Foo)#1 (0) {
}