Пример #1
0
 /**
  * @dataProvider lengthProvider()
  */
 public function testLength($expected, $str, $encoding = null)
 {
     $result = S::length($str, $encoding);
     $this->assertEquals($expected, $result);
     $this->assertInternalType('int', $result);
 }
Пример #2
0
 public function length($string)
 {
     return Stringy::length($string);
 }