mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
This commit also ports all ascraeus tests to the new format. Conflicts: tests/all_tests.php tests/network/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/template/templates/includephp.html
30 lines
926 B
PHP
30 lines
926 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package testing
|
|
* @version $Id$
|
|
* @copyright (c) 2008 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*
|
|
*/
|
|
|
|
// require_once __DIR__ . '/../../phpBB/includes/bbcode/bbcode_parser_base.php';
|
|
// require_once __DIR__ . '/../../phpBB/includes/bbcode/bbcode_parser.php';
|
|
|
|
class phpbb_bbcode_parser_test extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function test_both_passes()
|
|
{
|
|
$this->markTestIncomplete('New bbcode parser has not been backported from feature/ascraeus-experiment yet.');
|
|
|
|
$parser = new phpbb_bbcode_parser();
|
|
|
|
$result = $parser->first_pass('[i]Italic [u]underlined text[/u][/i]');
|
|
$result = $parser->second_pass($result);
|
|
|
|
$expected = '<span style="font-style: italic">Italic <span style="text-decoration: underline">underlined text</span></span>';
|
|
|
|
$this->assertEquals($expected, $result, 'Simple nested BBCode first+second pass');
|
|
}
|
|
}
|