public function testClosureNested()
{
$o = function ($a) {
// this should never happen
if ($a === false) {
return false;
}
$n = function ($b) {
return !$b;
};
$ns = unserialize(serialize(new SerializableClosure($n)));
return $ns(false);
};
$os = $this->s($o);
$this->assertEquals(true, $os(true));
}