1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +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,40 +0,0 @@
<?php
/**
*
* @package testing
* @copyright (c) 2010 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('PHPUnit_MAIN_METHOD'))
{
define('PHPUnit_MAIN_METHOD', 'phpbb_download_all_tests::main');
}
require_once 'test_framework/framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'download/http_byte_range.php';
class phpbb_download_all_tests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new PHPUnit_Framework_TestSuite('phpBB Download Tests');
$suite->addTestSuite('phpbb_download_http_byte_range_test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'phpbb_download_all_tests::main')
{
phpbb_regex_all_tests::main();
}

View File

@@ -7,8 +7,7 @@
*
*/
require_once 'test_framework/framework.php';
require_once '../phpBB/includes/functions_download.php';
require_once __DIR__ . '/../../phpBB/includes/functions_download.php';
class phpbb_download_http_byte_range_test extends phpbb_test_case
{