unset($mySerializable,
$fooSerializable,
$errorHandler);
$value =
new MyWakeup();
$value->sub =
new MyWakeup();
$value->sub->sub = 123;
$value->sub->bis = 123;
$value->sub->baz = 123;
yield ['wakeup',
$value];
yield ['clone',
[new MyCloneable(),
new MyNotCloneable()]];
yield ['private',
[new MyPrivateValue(123, 234
),
new MyPrivateChildValue(123, 234
)]];
$value =
new \
SplObjectStorage();
$value[new \
stdClass()] = 345;
yield ['spl-object-storage',
$value];
yield ['incomplete-class',
unserialize('O:20:"SomeNotExistingClass":0:{}'
)];
$value =
[(object) []];