1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-22 00:32:29 +02:00

[ticket/11250] Add some comments and fix a description

PHPBB3-11250
This commit is contained in:
Joas Schilling 2012-12-14 13:03:10 +01:00
parent deceeb7373
commit 90a81a064b

View File

@ -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:]',
),