xref: /PHP-8.2/Zend/tests/anon/006.phpt (revision 7aacc705)
1--TEST--
2testing anon classes inside namespaces
3--FILE--
4<?php
5namespace lone {
6   $hello = new class{} ;
7}
8
9namespace {
10    var_dump ($hello);
11}
12?>
13--EXPECTF--
14object(class@%s)#1 (0) {
15}
16