xref: /PHP-7.0/Zend/tests/anon/012.phpt (revision de5d4d7b)
1--TEST--
2Ensure correct unmangling of private property names for anonymous class instances
3--FILE--
4<?php
5var_dump(new class { private $foo; });
6?>
7--EXPECT--
8object(class@anonymous)#1 (1) {
9  ["foo":"class@anonymous":private]=>
10  NULL
11}
12