mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-03 00:28:53 +00:00
[ticket/11250] Add some comments and fix a description
PHPBB3-11250
This commit is contained in:
parent
deceeb7373
commit
90a81a064b
1 changed files with 4 additions and 6 deletions
|
@ -2,15 +2,11 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @package testing
|
* @package testing
|
||||||
* @version $Id$
|
* @copyright (c) 2012 phpBB Group
|
||||||
* @copyright (c) 2008 phpBB Group
|
|
||||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
* @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
|
class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
public function string_bbcode_data()
|
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:]',
|
'[email=bbcode-test@phpbb.com:]Email[/email:]',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
// Special cases for quote which were reported as bugs before
|
||||||
array(
|
array(
|
||||||
'PHPBB3-1401 - correct: parsed',
|
'PHPBB3-1401 - correct: parsed',
|
||||||
'[quote="[test]test"]test [ test[/quote]',
|
'[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]',
|
'[quote="a":]a[/quote:][quote="a]a[/quote]',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
// Nesting bbcodes into quote usernames
|
||||||
array(
|
array(
|
||||||
'Allow textual BBcodes in usernames',
|
'Allow textual BBcodes in usernames',
|
||||||
'[quote="[i]test[/i]"]test[/quote]',
|
'[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:]',
|
'[quote="[flash]http://www.phpbb.com/[/flash]":]test[/quote:]',
|
||||||
),
|
),
|
||||||
array(
|
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]',
|
||||||
'[quote="[quote]test[/quote]":]test[/quote:]',
|
'[quote="[quote]test[/quote]":]test[/quote:]',
|
||||||
),
|
),
|
||||||
|
|
Loading…
Add table
Reference in a new issue