public function testRemoveAccents() { $this->assertEquals('voce', Str::withoutAccents('você')); $this->assertTrue(Str::length(Str::withoutAccents('você')) === 4); }
/** * 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)); }