Exemplo n.º 1
0
 /**
  * @dataProvider padLeftProvider()
  */
 public function testPadLeft($expected, $str, $length, $padStr = ' ', $encoding = null)
 {
     $result = S::padLeft($str, $length, $padStr, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Exemplo n.º 2
0
 public function padLeft($string, $length, $padString)
 {
     return Stringy::padLeft($string, $length, $padString);
 }