function _negate($function)
{
    return Underscore::negate($function);
}
Esempio n. 2
0
 /**
  * @tags functions
  */
 public function testNegate()
 {
     $fn = _::negate(function () {
         return true;
     });
     $this->boolean($fn())->isFalse();
     $fn = _::negate($fn);
     $this->boolean($fn())->isTrue();
 }