From 68967b0fa20d229a189736b8e3bff4dd85cce3c8 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Jan 2009 12:26:07 +0000 Subject: [PATCH] more bbcode tests --- ext/bbcode/test.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ext/bbcode/test.php b/ext/bbcode/test.php index 18348440..76c809c7 100644 --- a/ext/bbcode/test.php +++ b/ext/bbcode/test.php @@ -13,6 +13,16 @@ class BBCodeUnitTest extends UnitTestCase { $this->template("[b]bold[i]italic", "[b]bold[i]italic"); } + public function testCode() { + $this->template("[code][b]bold[/b][/code]", "
[b]bold[/b]
"); + } + + public function testNestedList() { + $this->template( + "[list][*]a[list][*]a[*]b[/list][*]b[/list]", + ""); + } + public function testURL() { $this->template( "[url]http://shishnet.org[/url]",