php-8.0.30-src/ext/mbstring/tests/casefolding.phpt

41 lines
534 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--TEST--
Case-insensitive string comparisons use case folding
--SKIPIF--
<?php require 'skipif.inc'; ?>
--FILE--
<?php
$tests = [
["K", ""],
["k", ""],
["Å", "Å"],
["å", "Å"],
["ß", "ẞ"],
["Θ", "ϴ"],
["θ", "ϴ"],
["ϑ", "ϴ"],
["Ω", "Ω"],
["ω", "Ω"],
["I", "ı"],
["i", "ı"],
];
foreach ($tests as list($a, $b)) {
var_dump(mb_stripos($a, $b));
}
?>
--EXPECT--
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
int(0)
bool(false)
bool(false)