Example #1
0
 public function pluralize($word, $number)
 {
     if ($number == 1) {
         return $word;
     } else {
         return $this->textService->pluralize($word);
     }
 }
Example #2
0
 public function testStripMarkdown_Emails()
 {
     $this->assertEquals('websupport@camdram.net can be used for support', $this->textService->stripMarkdown('[E:websupport@camdram.net] can be used for support'));
     $this->assertEquals('The support email can be used for support', $this->textService->stripMarkdown('The [E:websupport@camdram.net;support email] can be used for support'));
 }