Example #1
0
 /**
  * @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);
 }
Example #2
0
 public function padBoth($string, $length, $padString)
 {
     return Stringy::padBoth($string, $length, $padString);
 }