示例#1
0
 public function ensureLeft($string, $left)
 {
     return Stringy::ensureLeft($string, $left);
 }
示例#2
0
 /**
  * @dataProvider ensureLeftProvider()
  */
 public function testEnsureLeft($expected, $str, $substring, $encoding = null)
 {
     $result = S::ensureLeft($str, $substring, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
示例#3
0
文件: Str.php 项目: hrmshandy/finder
 public static function ensureLeft($string, $char)
 {
     return Stringy::ensureLeft($string, $char);
 }