Register
phpBB.com Wiki · Home Projects Help

root / trunk / tests / all_tests.php

1
<?php
2
/**
3
*
4
* @package testing
5
* @version $Id: all_tests.php 9020 2008-10-15 16:21:27Z toonarmy $
6
* @copyright (c) 2008 phpBB Group
7
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
8
*
9
*/
10
11
define('IN_PHPBB', true);
12
13
if (!defined('PHPUnit_MAIN_METHOD'))
14
{
15
	define('PHPUnit_MAIN_METHOD', 'phpbb_all_tests::main');
16
}
17
18
require_once 'PHPUnit/Framework.php';
19
require_once 'PHPUnit/TextUI/TestRunner.php';
20
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
27
// exclude the test directory from code coverage reports
28
PHPUnit_Util_Filter::addDirectoryToFilter('./');
29
30
class phpbb_all_tests
31
{
32
	public static function main()
33
	{
34
		PHPUnit_TextUI_TestRunner::run(self::suite());
35
	}
36
37
	public static function suite()
38
	{
39
		$suite = new PHPUnit_Framework_TestSuite('phpBB');
40
41
		$suite->addTest(phpbb_bbcode_all_tests::suite());
42
		$suite->addTest(phpbb_utf_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
47
		return $suite;
48
	}
49
}
50
51
if (PHPUnit_MAIN_METHOD == 'phpbb_all_tests::main')
52
{
53
	phpbb_all_tests::main();
54
}
55
56
?>