function _negate($function)
{
    return Underscore::negate($function);
}
Пример #2
0
 /**
  * @tags functions
  */
 public function testNegate()
 {
     $fn = _::negate(function () {
         return true;
     });
     $this->boolean($fn())->isFalse();
     $fn = _::negate($fn);
     $this->boolean($fn())->isTrue();
 }