replaced deprecated utf8 functions
[dokuwiki.git] / _test / tests / inc / utf8_strtolower.test.php
blob2654c72ccf570241e289f351703c8343d20a96dc
1 <?php
2 // use no mbstring help here
3 if(!defined('UTF8_NOMBSTRING')) define('UTF8_NOMBSTRING',1);
5 class utf8_strtolower_test extends DokuWikiTest {
7 function test_givens(){
8 $data = array(
9 'Αρχιτεκτονική Μελέτη' => 'αρχιτεκτονική μελέτη', // FS#2173
12 foreach($data as $input => $expected) {
13 $this->assertEquals($expected, \dokuwiki\Utf8\PhpString::strtolower($input));
16 // just make sure our data was correct
17 if(function_exists('mb_strtolower')) {
18 foreach($data as $input => $expected) {
19 $this->assertEquals($expected, mb_strtolower($input, 'utf-8'));