1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/10620] Added tests

PHPBB3-10620
This commit is contained in:
JoshyPHP
2015-06-24 22:36:38 +02:00
parent 4f1b25706f
commit 7ce2d996a8
2 changed files with 35 additions and 0 deletions

View File

@@ -175,6 +175,36 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
),
'[quote=user post_id=123 url=http://example.org]...[/quote]',
),
array(
'...',
array('author' => ' '),
'[quote=" "]...[/quote]',
),
array(
'...',
array('author' => 'foo bar'),
'[quote="foo bar"]...[/quote]',
),
array(
'...',
array('author' => '\\'),
'[quote="\\\\"]...[/quote]',
),
array(
'...',
array('author' => '[quote="foo"]'),
'[quote=\'[quote="foo"]\']...[/quote]',
),
array(
'...',
array('author' => '""'),
'[quote=\'""\']...[/quote]',
),
array(
'...',
array('author' => "''"),
'[quote="\'\'"]...[/quote]',
),
array(
'This is a long quote that is definitely going to exceed 80 characters',
array(),