/** * @dataProvider removeRightProvider() */ public function testRemoveRight($expected, $str, $substring, $encoding = null) { $result = S::removeRight($str, $substring, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function removeRight($string, $subString) { return Stringy::removeRight($string, $subString); }
public function index($value, $params = array()) { return Stringy::removeRight($value, array_get($params, 0)); }
public static function removeRight($string, $char) { return Stringy::removeRight($string, $char); }
/** Класс для Item */ public function getItemClass($with_namespace = true) { $cl = $this->item_class ?: '\\' . StaticStringy::removeRight($this->getName(), 's'); $a = explode('\\', $cl); return $with_namespace ? $cl : end($a); }