From 771fd3696d2f729476399d5acf92a68dd154d78d Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 4 May 2008 12:54:47 +0000 Subject: adding a bbcode test suite git-svn-id: file:///svn/phpbb/trunk@8541 89ea8834-ac86-4346-8a33-228a782c2dd0 --- tests/bbcode/parser_test.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/bbcode/parser_test.php (limited to 'tests/bbcode/parser_test.php') diff --git a/tests/bbcode/parser_test.php b/tests/bbcode/parser_test.php new file mode 100644 index 0000000000..0cb223d799 --- /dev/null +++ b/tests/bbcode/parser_test.php @@ -0,0 +1,22 @@ +first_pass('[i]Italic [u]underlined text[/u][/i]'); + $result = $parser->second_pass($result); + + $expected = 'Italic underlined text'; + + $this->assertEquals($expected, $result, 'Simple nested BBCode first+second pass'); + } +} +?> \ No newline at end of file -- cgit v1.2.1