public function testClosureBindToObject() { $a = new A(); $b = function () { return $this->aPublic(); }; $b = $b->bindTo($a, __NAMESPACE__ . "\\A"); $u = $this->s($b); $this->assertEquals('public called', $u()); }