Exemplo n.º 1
0
 /**
  * Remove non Ascii characters
  */
 public function testConvertAccents()
 {
     $s = new Stringizer("FizzöBuzz Fizz Buzz Fizz Buzzé");
     $this->assertEquals("FizzoeBuzz Fizz Buzz Fizz Buzze", $s->replaceAccents());
     $s = new Stringizer("ȘŦŗÍñĝìzĕŕ");
     $this->assertEquals("STrIngizer", $s->replaceAccents());
 }
Exemplo n.º 2
0
 public function execute()
 {
     $s = new Stringizer($this->getValue());
     $s->replaceAccents();
     return ctype_lower($s->getString());
 }