assertEquals('d29yZA', Text::base64UrlEncode('word'), 'text-b64-enc-1');
$this->assertEquals('d29yZHM', Text::base64UrlEncode('words'), 'text-b64-enc-2');
$this->assertEquals('wordy', Text::base64UrlDecode('d29yZHm'), 'text-b64-dec');
$this->assertEquals(
'match',
Text::base64UrlDecode(Text::base64UrlEncode('match')),
'text-b64-round-trip'
);
}
public static function dataParse(): array {
return [
['text-parse-code', 'abc', '[code]abc[/code]'],
['text-parse-important', '
abc', '[pre]abc[/pre]'], ['text-parse-strong', 'abc', '[b]abc[/b]'], [ 'text-parse-align', '
',
'[img]http://to.be/some.jpg[/img]',
],
[
'text-parse-italic',
'def',
'[i]def[/i]'
],
[
'text-parse-ol',
'abc
def
', "abc\ndef\n", ], [ 'text-parse-quote', "abc wrote:many words", "[quote=abc]many words[/quote]", ], [ 'text-parse-size', 'abc', '[size=7]abc[/size]', ], [ 'text-parse-spoiler', 'abc: Show
def', '[spoiler=abc]def[/spoiler]', ], [ 'text-parse-ul', '