length() public method

Get the length of the current string.
public length ( ) : integer
return integer Length of current string.
Ejemplo n.º 1
0
 /**
  * @dataProvider stringSet
  */
 public function testLength($str)
 {
     $s = new StringObject($str);
     $length = $s->length();
     $lengthCheck = strlen($str);
     $this->assertSame($lengthCheck, $length);
 }