mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-18 02:06:12 +02:00
* develop-olympus: (26 commits) [git-tools] add note about PHP_BIN using env [git-tools] do not display stderr [git-tools] Prepend the branch to the commit message for all branches. [git-tools] Use env to find the correct paths to binaries. [git-tools] Display what parse errors were found. [git-tools] This script requires bash to run, so point directly to bash. [feature/dbal-tests] Remove hardcoded 'mysql' from PDO DSN in DBAL test. [feature/dbal-tests] Fix mysql (not mysqli) dbal test. [feature/dbal-tests] Only output the missing config error message once. [feature/dbal-tests] Make the PDO prefix depend on the dbms. [feature/dbal-tests] Fix whitespace and line endings. [bug/9108] Fix table binding issues with PostgreSQL in board-wide feed. (Old Bug #58425) [bug/59425] Correctly check for double inclusion in captcha garbage collection [bug/58465] The redirect hidden field is now XHTML conform [feature/dbal-tests] Make some tests for build_array_data on SELECT [feature/dbal-tests] Make some tests for return_on_error on SELECT-queries [feature/dbal-tests] Tests for $db->sql_query_limit() [feature/dbal-tests] Load phpbb-schema after creating the connection to the database [feature/dbal-tests] Added tests for dbal fetchrow and fetchfield. [feature/dbal-tests] Added database test & refactored test framework ...
57 lines
1.4 KiB
PHP
57 lines
1.4 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 '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';
|
|
|
|
// 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_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());
|
|
|
|
return $suite;
|
|
}
|
|
}
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'phpbb_all_tests::main')
|
|
{
|
|
phpbb_all_tests::main();
|
|
}
|
|
|