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