more bbcode tests

This commit is contained in:
Shish 2009-01-25 12:26:07 +00:00 committed by Shish
parent 4e551cf9c5
commit 68967b0fa2

View File

@ -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]", "<pre>[b]bold[/b]</pre>");
}
public function testNestedList() {
$this->template(
"[list][*]a[list][*]a[*]b[/list][*]b[/list]",
"<ul><li>a<ul><li>a<li>b</ul><li>b</ul>");
}
public function testURL() {
$this->template(
"[url]http://shishnet.org[/url]",