예제 #1
0
 public function testToFunktion()
 {
     $predicate = BinaryPredicate::create(self::getCallable());
     $funktion = $predicate->toFunktion();
     $this->assertInstanceOf(BinaryFunktion::class, $funktion);
     $this->assertEquals($predicate->getCallable(), $funktion->getCallable());
     $this->assertEquals(self::getCallable(), $funktion->getCallable());
 }
예제 #2
0
 /**
  *
  * @param callable $predicate
  * @return BinaryPredcateInterface
  */
 public static final function newBinaryPredicate(callable $predicate) : BinaryPredicateInterface
 {
     return BinaryPredicate::create($predicate);
 }