Ejemplo n.º 1
0
 public function ensureRight($string, $right)
 {
     return Stringy::ensureRight($string, $right);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider ensureRightProvider()
  */
 public function testEnsureRight($expected, $str, $substring, $encoding = null)
 {
     $result = S::ensureRight($str, $substring, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Ejemplo n.º 3
0
 public static function ensureRight($string, $char)
 {
     return Stringy::ensureRight($string, $char);
 }