Str test for removing accents
This commit is contained in:
parent
6f9dd183d3
commit
c9a01f64cc
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
use LaravelProfane\Str;
|
||||
|
||||
class StrTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_remove_accents_in_spanish_text()
|
||||
{
|
||||
$this->assertEquals('cojon', Str::removeAccent('cojón'));
|
||||
}
|
||||
|
||||
public function test_enie_char_is_allowed()
|
||||
{
|
||||
$this->assertEquals('coño', Str::removeAccent('coño'));
|
||||
}
|
||||
|
||||
public function test_remove_accents_in_greek()
|
||||
{
|
||||
$this->assertEquals('μαλακας', Str::removeAccent('μαλάκας'));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue