Example #1
0
 public function testStripNewLines()
 {
     $this->assertEquals('A quick brown fox', $this->textService->stripNewLines("A quick\r brown fox"));
     $this->assertEquals('A quick brown fox', $this->textService->stripNewLines("A quick\n brown fox"));
     $this->assertEquals('A quick brown fox', $this->textService->stripNewLines("A quick\r\n brown fox"));
 }
Example #2
0
 public function stripNewLines($text)
 {
     return $this->textService->stripNewLines($text);
 }