Str test for removing accents

This commit is contained in:
Arandi Lopez 2017-06-21 12:43:21 -05:00
parent 6f9dd183d3
commit c9a01f64cc
1 changed files with 21 additions and 0 deletions

21
tests/StrTest.php Normal file
View File

@ -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('μαλάκας'));
}
}