コード例 #1
0
 public function testIsNull()
 {
     $predicate = Predicates::isNull();
     $this->assertInstanceOf(UnaryPredicateInterface::class, $predicate);
     $this->assertTrue($predicate->test(null));
     $this->assertFalse($predicate->test(0));
 }
コード例 #2
0
ファイル: predicates.php プロジェクト: intrawarez/sabertooth
function isNull() : UnaryPredicateInterface
{
    return Predicates::isNull();
}