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