예제 #1
0
 public function testEquals()
 {
     $predicate = Predicates::equals();
     $this->assertInstanceOf(BinaryPredicateInterface::class, $predicate);
     $this->assertTrue($predicate->test(6, "6"));
     $this->assertFalse($predicate->test(6, 7));
 }
예제 #2
0
function equals(bool $strict = false) : BinaryPredicateInterface
{
    return Predicates::equals($strict);
}