/** * @dataProvider padBothProvider() */ public function testPadBoth($expected, $str, $length, $padStr = ' ', $encoding = null) { $result = S::padBoth($str, $length, $padStr, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function padBoth($string, $length, $padString) { return Stringy::padBoth($string, $length, $padString); }