Пример #1
0
 public function testMutators()
 {
     $str = new Text('it');
     $this->assertEquals('let it', $str->prepend('let '));
     $this->assertEquals('let it', $str->prepend(new Text('let ')));
     $this->assertEquals('it go', $str->append(' go'));
     $this->assertEquals('it go', $str->append(new Text(' go')));
 }