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