mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:11:47 +02:00
* develop-olympus: (57 commits) Revert "[ticket/7716] Data too long for column 'message_subject'" [ticket/7716] Data too long for column 'message_subject' [ticket/9780] Adding unit tests for gen_rand_string(). [ticket/9780] Add length check back to gen_rand_string(). [ticket/7972] Copying topics in the MCP now indexes the new topic. [ticket/9782] Board disable radio set on when server load high [ticket/9635] Useless parameter $data['post_time'] in function submit_post. [ticket/9104] Safari does not display box headers correctly in the ACP. [ticket/9777] Print error message in pre-commit hook when php is not installed. [ticket/7716] Data too long for column 'message_subject' [task/git-tools] Ignore git commit message comments [task/git-tools] Adjust the hook to enforce that a ticket is always mentioned [task/git-tools] Vastly expanded commit-msg hook. [task/git-tools] Beginnings of a syntax checking hook. [task/git-tools] Append ticket identifier to commit message prior to editing. [ticket/7332] Redirect users back to post details when performing actions. [ticket/7332] Collapse post details content down to a maximum of 300px heigh [ticket/9771] Remove query string parameters that have no name. [ticket/9760] Remove unrestricted wildcards from search terms. [ticket/9599] Reimplement phpbb_checkdnsrr() function. ... Conflicts: tests/template/template.php
65 lines
1.7 KiB
PHP
65 lines
1.7 KiB
PHP
<?php
|
|
/**
|
|
*
|
|
* @package testing
|
|
* @copyright (c) 2008 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
|
*
|
|
*/
|
|
|
|
if (!defined('PHPUnit_MAIN_METHOD'))
|
|
{
|
|
define('PHPUnit_MAIN_METHOD', 'phpbb_all_tests::main');
|
|
}
|
|
|
|
require_once 'test_framework/framework.php';
|
|
require_once 'PHPUnit/TextUI/TestRunner.php';
|
|
|
|
require_once 'class_loader/all_tests.php';
|
|
require_once 'utf/all_tests.php';
|
|
require_once 'request/all_tests.php';
|
|
require_once 'security/all_tests.php';
|
|
require_once 'template/all_tests.php';
|
|
#require_once 'bbcode/all_tests.php';
|
|
require_once 'text_processing/all_tests.php';
|
|
require_once 'dbal/all_tests.php';
|
|
require_once 'regex/all_tests.php';
|
|
require_once 'network/all_tests.php';
|
|
require_once 'random/all_tests.php';
|
|
|
|
// exclude the test directory from code coverage reports
|
|
PHPUnit_Util_Filter::addDirectoryToFilter('./');
|
|
|
|
class phpbb_all_tests
|
|
{
|
|
public static function main()
|
|
{
|
|
PHPUnit_TextUI_TestRunner::run(self::suite());
|
|
}
|
|
|
|
public static function suite()
|
|
{
|
|
$suite = new PHPUnit_Framework_TestSuite('phpBB');
|
|
|
|
$suite->addTest(phpbb_class_loader_all_tests::suite());
|
|
$suite->addTest(phpbb_utf_all_tests::suite());
|
|
$suite->addTest(phpbb_request_all_tests::suite());
|
|
$suite->addTest(phpbb_security_all_tests::suite());
|
|
$suite->addTest(phpbb_template_all_tests::suite());
|
|
# $suite->addTest(phpbb_bbcode_all_tests::suite());
|
|
$suite->addTest(phpbb_text_processing_all_tests::suite());
|
|
$suite->addTest(phpbb_dbal_all_tests::suite());
|
|
$suite->addTest(phpbb_regex_all_tests::suite());
|
|
$suite->addTest(phpbb_network_all_tests::suite());
|
|
$suite->addTest(phpbb_random_all_tests::suite());
|
|
|
|
return $suite;
|
|
}
|
|
}
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'phpbb_all_tests::main')
|
|
{
|
|
phpbb_all_tests::main();
|
|
}
|
|
|