function _tap($object, $interceptor)
{
    return Underscore::tap($object, $interceptor);
}
Exemplo n.º 2
0
 /**
  * @tags objects
  */
 public function testTap()
 {
     $value = "hello";
     $this->variable(_::tap($value, function (&$v) {
         $v = "world";
     }))->isEqualTo("world");
 }