summaryrefslogtreecommitdiff
path: root/inc/parser/tests/testconfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/tests/testconfig.php')
-rw-r--r--inc/parser/tests/testconfig.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/inc/parser/tests/testconfig.php b/inc/parser/tests/testconfig.php
new file mode 100644
index 000000000..d855be8fb
--- /dev/null
+++ b/inc/parser/tests/testconfig.php
@@ -0,0 +1,19 @@
+<?php
+if (!defined('SIMPLE_TEST')) {
+ // Should point at SimpleTest
+ //(absolute path recommended with trailing slash)
+ define('SIMPLE_TEST', '/var/www/simpletest/');
+}
+
+// Load SimpleTest
+if ( @include_once SIMPLE_TEST . 'unit_tester.php' ) {
+ require_once SIMPLE_TEST . 'mock_objects.php';
+ require_once SIMPLE_TEST . 'reporter.php';
+} else {
+ trigger_error('Unable to load SimpleTest: '.
+ 'configure SIMPLE_TEST in config.php');
+}
+
+// Modify this as needed
+define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
+?>