public function testClosureObjectinObject()
{
$f = function () use(&$f) {
return $f;
};
$t = new ObjnObj();
$t->func = $f;
$t2 = new ObjnObj();
$t2->func = $f;
$t->subtest = $t2;
$x = unserialize(serialize($t));
$g = $x->func;
$g = $g();
$ok = $x->func == $x->subtest->func;
$ok = $ok && $x->subtest->func == $g;
$this->assertEquals(true, $ok);
}