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