1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-28 12:30:42 +02:00

Merge branch 'develop-olympus' into develop

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
This commit is contained in:
Igor Wiedler
2011-01-07 01:39:18 +01:00
47 changed files with 128 additions and 678 deletions

View File

@@ -1,43 +0,0 @@
<?php
/**
*
* @package testing
* @version $Id$
* @copyright (c) 2008 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('IN_PHPBB', true);
if (!defined('PHPUnit_MAIN_METHOD'))
{
define('PHPUnit_MAIN_METHOD', 'phpbb_bbcode_all_tests::main');
}
require_once 'test_framework/framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'bbcode/parser_test.php';
class phpbb_bbcode_all_tests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('phpBB Formatted Text / BBCode');
$suite->addTestSuite('phpbb_bbcode_parser_test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'phpbb_bbcode_all_tests::main')
{
phpbb_bbcode_all_tests::main();
}

View File

@@ -8,16 +8,15 @@
*
*/
define('IN_PHPBB', true);
require_once 'test_framework/framework.php';
require_once '../phpBB/includes/bbcode/bbcode_parser_base.php';
require_once '../phpBB/includes/bbcode/bbcode_parser.php';
// 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]');