[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 class utf8_strtolower_test extends DokuWikiTest 4 { 5 6 /** 7 * @see testGivens 8 * @return array 9 */ 10 public function provideGivens() 11 { 12 return [ 13 ['Αρχιτεκτονική Μελέτη', 'αρχιτεκτονική μελέτη'], // FS#2173 14 ['ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'], 15 ['players:Bruce', 'players:bruce'], 16 ['players:GERALD', 'players:gerald'], 17 [ 18 'Α Β Γ Δ Ε Ϝ Ϛ Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ϟ ϙ Ρ Σ Τ Υ Φ Χ Ψ Ω Ϡ', 19 'α β γ δ ε ϝ ϛ ζ η θ ι κ λ μ ν ξ ο π ϟ ϙ ρ σ τ υ φ χ ψ ω ϡ' 20 ], // #3188 21 ]; 22 } 23 24 /** 25 * @dataProvider provideGivens 26 * @param string $input 27 * @param string $expected 28 */ 29 public function testGivens($input, $expected) 30 { 31 $this->assertEquals($expected, \dokuwiki\Utf8\PhpString::strtolower($input)); 32 // just make sure our data was correct 33 $this->assertEquals($expected, mb_strtolower($input, 'utf-8'), 'mbstring check'); 34 } 35 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body