***** Test the 'known' property *****
__isset() results should be false ✅
bool(false)
__get() results should be an object with prop1 and prop2 ✅
object(stdClass)#3 (2) {
["prop1"]=>
string(3) "foo"
["prop2"]=>
string(3) "bar"
}
__isset() after __get() results should be true ❌
bool(false)
__unset() + __get() results should be re-init the object with prop1 and prop2 ✅
object(stdClass)#3 (2) {
["prop1"]=>
string(3) "foo"
["prop2"]=>
string(3) "bar"
}
***** Unknown, unexpected dynamic property *****
__isset() results should be false ✅
bool(false)
__get() results should be null ✅
NULL
__isset() after __get() results should be false ✅
bool(false)
__unset() + __get() results should be null ✅
NULL