public function testOffsetSet() { $chars = new CharArray(16); $chars[0] = 'o'; $chars[1] = 'ß'; $this->assertEquals('oß', $chars->toString()->getOriginalValue()); $this->assertEquals('oß', (string) $chars); }
/** * @return \PHPJ\Lang\String - a string consisting of exactly this sequence of characters */ public function toString() { return $this->length() ? new String($this->value->toString()) : new String(); }