aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-01-03 22:21:54 +0100
committerIgor Wiedler <igor@wiedler.ch>2011-01-04 22:54:01 +0100
commit9a52bd030189280f48a35d3b9e52f9d77071cb5e (patch)
treeca295d6b56ca1e6bcf5617ba42bf4c6f43af7c8d /tests/bootstrap.php
parentc54683be8c0493a51d9a1dbf4c605e95d17940b2 (diff)
downloadforums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar
forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.gz
forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.bz2
forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.tar.xz
forums-9a52bd030189280f48a35d3b9e52f9d77071cb5e.zip
[task/phpunit-xml] Use phpunit.xml for test suite
PHPBB3-9967
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
new file mode 100644
index 0000000000..9683ba0d47
--- /dev/null
+++ b/tests/bootstrap.php
@@ -0,0 +1,30 @@
+<?php
+/**
+*
+* @package testing
+* @copyright (c) 2008 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License
+*
+*/
+
+define('IN_PHPBB', true);
+$phpbb_root_path = 'phpBB/';
+$phpEx = 'php';
+$table_prefix = '';
+
+// If we are on PHP >= 6.0.0 we do not need some code
+if (version_compare(PHP_VERSION, '6.0.0-dev', '>='))
+{
+ define('STRIP', false);
+}
+else
+{
+ @set_magic_quotes_runtime(0);
+ define('STRIP', (get_magic_quotes_gpc()) ? true : false);
+}
+
+require_once $phpbb_root_path . 'includes/constants.php';
+
+require_once 'test_framework/phpbb_test_case_helpers.php';
+require_once 'test_framework/phpbb_test_case.php';
+require_once 'test_framework/phpbb_database_test_case.php';