aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bbcode
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-12-14 12:58:57 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-12-14 12:58:57 +0100
commitade9f831aa151de428c4d2b33fce48f9733db336 (patch)
tree3707f6b109e9b177e2ed99dec74620c043576563 /tests/bbcode
parent754dc9c1592001ac4f223358fd708bd338f49fb3 (diff)
downloadforums-ade9f831aa151de428c4d2b33fce48f9733db336.tar
forums-ade9f831aa151de428c4d2b33fce48f9733db336.tar.gz
forums-ade9f831aa151de428c4d2b33fce48f9733db336.tar.bz2
forums-ade9f831aa151de428c4d2b33fce48f9733db336.tar.xz
forums-ade9f831aa151de428c4d2b33fce48f9733db336.zip
[ticket/11250] Move quote special cases from class to unit tests
PHPBB3-11250
Diffstat (limited to 'tests/bbcode')
-rw-r--r--tests/bbcode/parser_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bbcode/parser_test.php b/tests/bbcode/parser_test.php
index 697bcde610..410eeabe92 100644
--- a/tests/bbcode/parser_test.php
+++ b/tests/bbcode/parser_test.php
@@ -137,6 +137,32 @@ class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
'[email=bbcode-test@phpbb.com]Email[/email]',
'[email=bbcode-test@phpbb.com:]Email[/email:]',
),
+
+ array(
+ 'PHPBB3-1401 - correct: parsed',
+ '[quote="[test]test"]test [ test[/quote]',
+ '[quote="[test]test":]test [ test[/quote:]',
+ ),
+ array(
+ 'PHPBB3-6117 - correct: parsed',
+ '[quote]test[/quote] test ] and [ test [quote]test[/quote]',
+ '[quote:]test[/quote:] test ] and [ test [quote:]test[/quote:]',
+ ),
+ array(
+ 'PHPBB3-6200 - correct: parsed',
+ '[quote="["]test[/quote]',
+ '[quote="[":]test[/quote:]',
+ ),
+ array(
+ 'PHPBB3-9364 - quoted: "test[/[/b]quote] test" / non-quoted: "[/quote] test" - also failed if layout distorted',
+ '[quote]test[/[/b]quote] test [/quote][/quote] test',
+ '[quote:]test[/[/b]quote] test [/quote:][/quote] test',
+ ),
+ array(
+ 'PHPBB3-8096 - first quote tag parsed, second quote tag unparsed',
+ '[quote="a"]a[/quote][quote="a]a[/quote]',
+ '[quote="a":]a[/quote:][quote="a]a[/quote]',
+ ),
);
}