public function testIsNull()
 {
     $predicate = Predicates::isNull();
     $this->assertInstanceOf(UnaryPredicateInterface::class, $predicate);
     $this->assertTrue($predicate->test(null));
     $this->assertFalse($predicate->test(0));
 }
Beispiel #2
0
function isNull() : UnaryPredicateInterface
{
    return Predicates::isNull();
}