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); }
public static function ensureLeft($string, $char) { return Stringy::ensureLeft($string, $char); }