コード例 #1
0
function _negate($function)
{
    return Underscore::negate($function);
}
コード例 #2
0
ファイル: Underscore.php プロジェクト: brombal/underscore.php
 /**
  * @tags functions
  */
 public function testNegate()
 {
     $fn = _::negate(function () {
         return true;
     });
     $this->boolean($fn())->isFalse();
     $fn = _::negate($fn);
     $this->boolean($fn())->isTrue();
 }