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