Beispiel #1
0
 public function testReplace()
 {
     $text = new Text('Replace me');
     $search = new Text('me');
     $replace = new Text('yourself');
     $this->assertEquals('Replace yourself', $text->replace($search, $replace));
 }
Beispiel #2
0
 private function underscoreToDash(Text $text)
 {
     return $text->replace($this->text_underscore, $this->text_dash);
 }