1--TEST--
2Lazy objects: RFC example 010
3--FILE--
4<?php
5
6class MyClass {
7    public $a;
8    public $b;
9}
10
11$reflector = new ReflectionClass(MyClass::class);
12$obj = $reflector->newLazyGhost(function () {});
13
14$reflector->getProperty('a')->setRawValueWithoutLazyInitialization($obj, 'value');
15
16var_dump($obj);
17
18?>
19==DONE==
20--EXPECTF--
21lazy ghost object(MyClass)#%d (1) {
22  ["a"]=>
23  string(5) "value"
24}
25==DONE==
26