public function __invoke() { $result = \bubblr\Bubbler::spout($this, func_get_args()); if (!empty($result)) { return $result[0]; } }
function testBubbler() { $c = 0; bubblr\Bubbler::spout(function () use(&$c) { $c++; }); $this->assertEquals(1, $c); }