***** 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(true)
__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)
Deprecated: Getting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 25
__get() results should be null ✅
NULL
__isset() after __get() results should be false ✅
bool(false)
Deprecated: Unsetting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 66
Deprecated: Getting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 25
__unset() + __get() results should be null ✅
NULL
Output for 8.1.0 - 8.1.30
***** 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(true)
__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)
Deprecated: Getting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 27
__get() results should be null ✅
NULL
__isset() after __get() results should be false ✅
bool(false)
Deprecated: Unsetting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 68
Deprecated: Getting the dynamic property "unknown" on DynamicPropInitOnGet is deprecated in /in/6gXXU on line 27
__unset() + __get() results should be null ✅
NULL