summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/common.php
diff options
context:
space:
mode:
authorxue <>2005-11-10 12:47:19 +0000
committerxue <>2005-11-10 12:47:19 +0000
commit55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 (patch)
treea0599d5e36fdbb3f1e169ae56bab7d529597e3eb /tests/UnitTests/framework/common.php
Initial import of prado framework
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