/**
  * @dataProvider trimProvider()
  */
 public function testTrim($expected, $str, $chars = null, $encoding = null)
 {
     $result = S::trim($str, $chars, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
 /**
  * @dataProvider trimProvider()
  */
 public function testTrim($expected, $str)
 {
     $result = S::trim($str);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Exemple #3
0
 public function trim($string)
 {
     return Stringy::trim($string);
 }