diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-06-24 22:36:38 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-06-25 03:11:58 +0200 |
commit | 7ce2d996a82b5a2f68560a4136c1f3938a1955d4 (patch) | |
tree | 6ae715442c32db93b1b14bbfd08cfb921bb18959 /tests/text_formatter/s9e/utils_test.php | |
parent | 4f1b25706f6a1ae6eb1c6c60ef27b42bb7ac4b40 (diff) | |
download | forums-7ce2d996a82b5a2f68560a4136c1f3938a1955d4.tar forums-7ce2d996a82b5a2f68560a4136c1f3938a1955d4.tar.gz forums-7ce2d996a82b5a2f68560a4136c1f3938a1955d4.tar.bz2 forums-7ce2d996a82b5a2f68560a4136c1f3938a1955d4.tar.xz forums-7ce2d996a82b5a2f68560a4136c1f3938a1955d4.zip |
[ticket/10620] Added tests
PHPBB3-10620
Diffstat (limited to 'tests/text_formatter/s9e/utils_test.php')
-rw-r--r-- | tests/text_formatter/s9e/utils_test.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/utils_test.php b/tests/text_formatter/s9e/utils_test.php index f2b480facb..1c03783792 100644 --- a/tests/text_formatter/s9e/utils_test.php +++ b/tests/text_formatter/s9e/utils_test.php @@ -176,6 +176,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(), "[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]", |