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