summaryrefslogtreecommitdiff
path: root/test/BBCodeParserTest.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-25 17:39:20 +0000
committeruckelman <uckelman@nomic.net>2010-04-25 17:39:20 +0000
commita41c349410198fd324cc893169ab17f2f69561e2 (patch)
tree5cae790194abdc800dbb92c2fc768a9ad20eac74 /test/BBCodeParserTest.php
parent17e5654c1583939217c31f876419bc2f6d6edc43 (diff)
Testing quote parsing.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6743 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test/BBCodeParserTest.php')
-rw-r--r--test/BBCodeParserTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/BBCodeParserTest.php b/test/BBCodeParserTest.php
index f1047f9..d3be5cb 100644
--- a/test/BBCodeParserTest.php
+++ b/test/BBCodeParserTest.php
@@ -18,7 +18,8 @@ class BBCodeParserTest extends PHPUnit_Framework_TestCase {
return array(
array('', '3i2cqt66', '', null),
array('[b:3i2cqt66]This is a[/b:3i2cqt66] test of [i:3i2cqt66]the BBCode[/i:3i2cqt66] parser. Will [u:3i2cqt66][i:3i2cqt66]it[/i:3i2cqt66][/u:3i2cqt66] parse? Also, throw in some difficult characters: 1 &lt; 2 &lt; 4 &gt; 3.', '3i2cqt66', '__This is a__ test of _the BBCode_ parser. Will __it__ parse? Also, throw in some difficult characters: 1 &lt; 2 &lt; 4 &gt; 3.', null),
- array("Foo\n[list=2:11cx3qbi]\n[*:11cx3qbi] first[/*:m:11cx3qbi]\n[*:11cx3qbi] second[/*:m:11cx3qbi][/list:o:11cx3qbi]\nBar", '11cx3qbi', "Foo\n\n * first\n * second\n\nBar", null)
+ array("[quote:2nnqpmcp]Here's some quoty stuff.[quote:2nnqpmcp]Followed by an even deeper quote.[/quote:2nnqpmcp]Followed by more stuff.[/quote:2nnqpmcp]", '2nnqpmcp', "> Here's some quoty stuff.\n> > Followed by an even deeper quote.\n> Followed by more stuff.", null),
+# array("Foo\n[list:11cx3qbi]\n[*:11cx3qbi] first[/*:11cx3qbi]\n[*:11cx3qbi] second[/*:11cx3qbi][/list:o:11cx3qbi]\nBar", '11cx3qbi', "Foo\n\n * first\n * second\n\nBar", null)
);
}
}