summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/common.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/UnitTests/framework/common.php')
-rw-r--r--tests/UnitTests/framework/common.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/UnitTests/framework/common.php b/tests/UnitTests/framework/common.php
new file mode 100644
index 00000000..dc268e28
--- /dev/null
+++ b/tests/UnitTests/framework/common.php
@@ -0,0 +1,26 @@
+<?php
+
+if(!defined('FRAMEWORK_DIR'))
+ define('FRAMEWORK_DIR',realpath(dirname(__FILE__).'/../../../framework'));
+if(!defined('SIMPLETEST_DIR'))
+ define('SIMPLETEST_DIR',realpath(dirname(__FILE__).'/../simpletest'));
+
+require_once(SIMPLETEST_DIR.'/unit_tester.php');
+require_once(SIMPLETEST_DIR.'/reporter.php');
+require_once(SIMPLETEST_DIR.'/HtmlReporterWithCoverage.php');
+
+require_once(FRAMEWORK_DIR.'/core.php');
+
+class Prado extends PradoBase
+{
+}
+
+function __autoload($className)
+{
+ require_once($className);
+}
+
+error_reporting(E_ALL);
+restore_error_handler();
+
+?> \ No newline at end of file