php-src/ext/reflection/tests/bug80564.phpt
Nikita Popov 5ac55af5e5 Add test for bug #80564
This has also been fixed by 3eb97a4566.
2021-07-23 09:45:39 +02:00

18 lines
285 B
PHP

--TEST--
Bug #80564: ReflectionProperty::__toString() renders current value, not default value
--FILE--
<?php
class A {
public static $x = 'default';
}
A::$x = new stdClass;
$rp = new ReflectionProperty('A', 'x');
echo $rp;
?>
--EXPECT--
Property [ public static $x = 'default' ]