コード例 #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
ファイル: predicates.php プロジェクト: intrawarez/sabertooth
function equals(bool $strict = false) : BinaryPredicateInterface
{
    return Predicates::equals($strict);
}