21use PHPUnit\Framework\TestCase;
24require_once(
"./include/Unicode/UtfNormal.php");
34 [
"Control\u{00a0}Character",
'ControlCharacter'],
35 [
"Soft\u{00ad}Hyphen",
'SoftHyphen'],
36 [
"No\u{0083}Break",
'NoBreak'],
37 [
"ZeroWidth\u{200C}NonJoiner",
'ZeroWidthNonJoiner'],
38 [
"ZeroWidth\u{200d}Joiner",
'ZeroWidthJoiner'],
39 [
"Invisible\u{2062}Times",
'InvisibleTimes'],
40 [
"Invisible\u{2063}Comma",
'InvisibleComma'],
41 [
"Funky\u{200B}Whitespace",
'FunkyWhitespace'],
50 $this->assertEquals($expected, Util::sanitizeFilename(
$filename));
An exception for terminatinating execution or to throw for unit testing.
testSanitize(string $filename, string $expected)
@dataProvider provideFilenames
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...