Data provider for testStrtolower().
array An array containing a string, its lowercase version and whether it should be processed as multibyte.
testStrtolower()
public function providerStrtolower() {
$cases = array(
array(
'tHe QUIcK bRoWn',
'the quick brown',
),
array(
'FrançAIS is ÜBER-åwesome',
'français is über-åwesome',
),
);
foreach ($cases as $case) {
// Test the same string both in multibyte and singlebyte conditions.
array_push($case, TRUE);
$cases[] = $case;
}
// Add a multibyte string.
$cases[] = array(
'ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΣὨ',
'αβγδεζηθικλμνξοσὠ',
TRUE,
);
return $cases;
}