public function testToFunktion()
 {
     $predicate = NaryPredicate::create(self::getCallable());
     $funktion = $predicate->toFunktion();
     $this->assertInstanceOf(NaryFunktion::class, $funktion);
     $this->assertEquals($predicate->getCallable(), $funktion->getCallable());
     $this->assertEquals(self::getCallable(), $funktion->getCallable());
 }
Exemple #2
0
 /**
  *
  * @param callable $predicate
  * @return NaryPredicateInterface
  */
 public static final function newNaryPredicate(callable $predicate) : NaryPredicateInterface
 {
     return NaryPredicate::create($predicate);
 }