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