/** * @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); }
public function trim($string) { return Stringy::trim($string); }