not() public static method

public static not ( $predicate )
コード例 #1
0
ファイル: FunctionsTest.php プロジェクト: letsdrink/ouzo
 /**
  * @test
  */
 public function shouldNegatePredicate()
 {
     $this->assertFalse(Functions::call(Functions::not(Functions::identity()), true));
     $this->assertTrue(Functions::call(Functions::not(Functions::identity()), false));
 }