/** * @dataProvider charsProvider() */ public function testChars($expected, $str, $encoding = null) { $result = S::chars($str, $encoding); $this->assertInternalType('array', $result); foreach ($result as $char) { $this->assertInternalType('string', $char); } $this->assertEquals($expected, $result); }
public function chars($string) { return Stringy::chars($string); }