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