Esempio n. 1
0
 public function testOffsetSet()
 {
     $chars = new CharArray(16);
     $chars[0] = 'o';
     $chars[1] = 'ß';
     $this->assertEquals('oß', $chars->toString()->getOriginalValue());
     $this->assertEquals('oß', (string) $chars);
 }
Esempio n. 2
0
 /**
  * @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();
 }