Beispiel #1
0
 public function testIteratorAggregate()
 {
     $str = "Lorem Ipsum";
     $text = Text::Of($str);
     foreach ($text as $index => $char) {
         $this->assertEquals($str[$index], $char);
     }
 }
Beispiel #2
0
 /**
  * adds
  * @param String $string
  * @return Text
  */
 public function add(string $string) : Text
 {
     return Text::Of($this->string . $string);
 }