Allow normalized search (without diacritics) it should also fix the case problem with non latin languages (cyrillic).

The last part is not tested.

disclaimer : Slow !

re #49, #48
This commit is contained in:
Sébastien Lucas 2014-05-03 17:57:06 +02:00
parent 23fcc4d641
commit 78d42b48e2
5 changed files with 148 additions and 7 deletions

View file

@ -125,4 +125,8 @@ class BaseTest extends PHPUnit_Framework_TestCase
$this->assertTrue (Base::checkDatabaseAvailability ());
}
public function testNormalizeUtf8String () {
$this->assertEquals ("AAAAAEACEEEEIIIIOEOOOOOEUUUUEYaaaaaeaceeeeiiiioedoooooeuuuueyyuny", normalizeUtf8String ("ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏŒÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïœðòóôõöùúûüýÿñ"));
}
}