<?php
// include to make the tests run..
-$_test_dir = dirname(__FILE__).'/home/gitlive/web.roojsolutions/';
-
-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