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