is_empty() public static method

public static is_empty ( $obj = null )
Beispiel #1
0
 public function test_is_empty()
 {
     $this->assertTrue(Helper::is_empty(null));
     $this->assertTrue(Helper::is_empty(array()));
     $this->assertTrue(Helper::is_empty(new \ArrayIterator()));
     $this->assertFalse(Helper::is_empty(new \StdClass()));
 }