summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/AllTests.php1
-rw-r--r--tests/prepare.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/AllTests.php b/tests/AllTests.php
index 1526da8..db3ebfe 100644
--- a/tests/AllTests.php
+++ b/tests/AllTests.php
@@ -15,6 +15,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}
+require_once 'prepare.php';
require_once 'PHPUnit/Framework/TestSuite.php';
class AllTests extends PHPUnit_Framework_TestSuite
diff --git a/tests/prepare.php b/tests/prepare.php
new file mode 100644
index 0000000..50304c2
--- /dev/null
+++ b/tests/prepare.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * Prepare the application for unit testing
+ */
+$_SERVER['HTTP_HOST'] = 'http://localhost/';
+define('UNIT_TEST_MODE', true);
+?> \ No newline at end of file