length() публичный Метод

Get the length of a string
public length ( string $string ) : integer
$string string The input string
Результат integer Length of the string
 /**
  * @test
  * @dataProvider lengthExamples
  */
 public function lengthWorks($input, $expected)
 {
     $helper = new StringHelper();
     $result = $helper->length($input);
     $this->assertSame($expected, $result);
 }