DataObjects/Core_company.php
[Pman.Core] / tests / Tests.php
index ac7212e..3d57ecd 100644 (file)
@@ -1,14 +1,22 @@
 <?php
 
 // include to make the tests run..
-$_test_dir  = dirname(__FILE__).'/../../';
-
-ini_set('include_path', 
-            $_test_dir  . ':' . 
-            $_test_dir  .'/pearfix:' . 
-            $_test_dir  .'/pear:' . 
-            ini_get('include_path'));
-
-define('DB_DATAOBJECT_NO_OVERLOAD', true);
+// this needs fixing - probably needs to point to a test framework..
 
+function init() {
+    global $_test_dir  ;
+    $_test_dir  = '/var/www/web.roojsolutions/';
+    
+    ini_set('include_path', 
+                $_test_dir  . ':' . 
+                $_test_dir  .'/pearfix:' . 
+                $_test_dir  .'/pear:' . 
+                ini_get('include_path'));
+    
+    define('DB_DATAOBJECT_NO_OVERLOAD', true);
+    
+    require_once 'HTML/FlexyFramework/Page.php';
+    
+    class_exists('DB_DataObject') ? '' : require_once 'DB/DataObject.php';
 
+}
\ No newline at end of file