public function testTranslate() { $this->eq(s::translate('abcba', 'abc', '123'), '12321'); $this->eq(s::translate('', 'abc', '123'), ''); $this->eq(s::translate('abc', '', ''), 'abc'); }
public function translate($old, $new) { return new self(s::translate($this->value, self::unwrap($old), self::unwrap($new))); }