aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bbcode
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-12-14 13:03:10 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-12-14 13:03:10 +0100
commit90a81a064bd119792a2848c3699d1f1ec0ad1827 (patch)
treee35cc28eb6c0bbd028469a2e9703964888287904 /tests/bbcode
parentdeceeb737335b0724c9a15c1f7332ec6deddc3f3 (diff)
downloadforums-90a81a064bd119792a2848c3699d1f1ec0ad1827.tar
forums-90a81a064bd119792a2848c3699d1f1ec0ad1827.tar.gz
forums-90a81a064bd119792a2848c3699d1f1ec0ad1827.tar.bz2
forums-90a81a064bd119792a2848c3699d1f1ec0ad1827.tar.xz
forums-90a81a064bd119792a2848c3699d1f1ec0ad1827.zip
[ticket/11250] Add some comments and fix a description
PHPBB3-11250
Diffstat (limited to 'tests/bbcode')
-rw-r--r--tests/bbcode/parser_test.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/bbcode/parser_test.php b/tests/bbcode/parser_test.php
index f700177498..ed55a69640 100644
--- a/tests/bbcode/parser_test.php
+++ b/tests/bbcode/parser_test.php
@@ -2,15 +2,11 @@
/**
*
* @package testing
-* @version $Id$
-* @copyright (c) 2008 phpBB Group
+* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
-// require_once dirname(__FILE__) . '/../../phpBB/includes/bbcode/bbcode_parser_base.php';
-// require_once dirname(__FILE__) . '/../../phpBB/includes/bbcode/bbcode_parser.php';
-
class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
{
public function string_bbcode_data()
@@ -138,6 +134,7 @@ class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
'[email=bbcode-test@phpbb.com:]Email[/email:]',
),
+ // Special cases for quote which were reported as bugs before
array(
'PHPBB3-1401 - correct: parsed',
'[quote="[test]test"]test [ test[/quote]',
@@ -164,6 +161,7 @@ class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
'[quote="a":]a[/quote:][quote="a]a[/quote]',
),
+ // Nesting bbcodes into quote usernames
array(
'Allow textual BBcodes in usernames',
'[quote="[i]test[/i]"]test[/quote]',
@@ -185,7 +183,7 @@ class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
'[quote="[flash]http://www.phpbb.com/[/flash]":]test[/quote:]',
),
array(
- 'parsed - Username displayed as [quote]test[/quote]',
+ 'Disallow quote BBcodes in usernames - Username displayed as [quote]test[/quote]',
'[quote="[quote]test[/quote]"]test[/quote]',
'[quote="[quote]test[/quote]":]test[/quote:]',
),