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