Exemple #1
0
 public function ensureLeft($string, $left)
 {
     return Stringy::ensureLeft($string, $left);
 }
 /**
  * @dataProvider ensureLeftProvider()
  */
 public function testEnsureLeft($expected, $str, $substring, $encoding = null)
 {
     $result = S::ensureLeft($str, $substring, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Exemple #3
0
 public static function ensureLeft($string, $char)
 {
     return Stringy::ensureLeft($string, $char);
 }