Skip to content
Snippets Groups Projects
Commit 04180aa9 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

unit test for FS#2173

parent fd687c18
No related branches found
No related tags found
No related merge requests found
<?php
// use no mbstring help here
if(!defined('UTF8_NOMBSTRING')) define('UTF8_NOMBSTRING',1);
class utf8_strtolower_test extends DokuWikiTest {
function test_givens(){
$data = array(
'Αρχιτεκτονική Μελέτη' => 'αρχιτεκτονική μελέτη', // FS#2173
);
foreach($data as $input => $expected) {
$this->assertEquals($expected, utf8_strtolower($input));
}
// just make sure our data was correct
if(function_exists('mb_strtolower')) {
foreach($data as $input => $expected) {
$this->assertEquals($expected, mb_strtolower($input, 'utf-8'));
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment