/** * @dataProvider lengthProvider() */ public function testLength($expected, $str, $encoding = null) { $result = S::length($str, $encoding); $this->assertEquals($expected, $result); $this->assertInternalType('int', $result); }
public function length($string) { return Stringy::length($string); }