length() public static method

public static length ( $obj = null )
Beispiel #1
0
 public function test_length()
 {
     $this->assertEquals(13, Helper::length('Hello, World!'));
     $this->assertEquals(3, Helper::length(array(1, 2, 3)));
     $this->assertEquals(1, Helper::length(1));
     $this->assertEquals(1, Helper::length(new \StdClass()));
 }