Пример #1
0
 public function testRemoveAccents()
 {
     $this->assertEquals('voce', Str::withoutAccents('você'));
     $this->assertTrue(Str::length(Str::withoutAccents('você')) === 4);
 }
Пример #2
0
 /**
  * Inicia a instância
  *
  * @param $word
  */
 public function __construct($word)
 {
     $this->word = $word;
     $this->length = Str::length($word);
     $this->keyword = Str::lower(Str::withoutAccents($word));
 }