every second commit an pre/post-commit error... :/
[phpbb.git] / tests / all_tests.php
blob60a66598e7b45473c2f7cf1b56f6a2a61210551d
1 <?php
2 /**
4 * @package testing
5 * @version $Id$
6 * @copyright (c) 2008 phpBB Group
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
9 */
11 define('IN_PHPBB', true);
13 if (!defined('PHPUnit_MAIN_METHOD'))
15 define('PHPUnit_MAIN_METHOD', 'phpbb_all_tests::main');
18 require_once 'test_framework/framework.php';
19 require_once 'PHPUnit/TextUI/TestRunner.php';
21 require_once 'bbcode/all_tests.php';
22 require_once 'utf/all_tests.php';
23 require_once 'request/all_tests.php';
24 require_once 'security/all_tests.php';
25 require_once 'template/all_tests.php';
26 require_once 'text_processing/all_tests.php';
28 // exclude the test directory from code coverage reports
29 PHPUnit_Util_Filter::addDirectoryToFilter('./');
31 class phpbb_all_tests
33 public static function main()
35 PHPUnit_TextUI_TestRunner::run(self::suite());
38 public static function suite()
40 $suite = new PHPUnit_Framework_TestSuite('phpBB');
42 $suite->addTest(phpbb_bbcode_all_tests::suite());
43 $suite->addTest(phpbb_request_all_tests::suite());
44 $suite->addTest(phpbb_security_all_tests::suite());
45 $suite->addTest(phpbb_template_all_tests::suite());
46 $suite->addTest(phpbb_text_processing_all_tests::suite());
47 $suite->addTest(phpbb_utf_all_tests::suite());
49 return $suite;
53 if (PHPUnit_MAIN_METHOD == 'phpbb_all_tests::main')
55 phpbb_all_tests::main();