2009-10-03 23:25:07 +00:00
|
|
|
<?php
|
2009-10-26 06:39:59 +00:00
|
|
|
/**
|
|
|
|
* SemanticScuttle - your social bookmark manager.
|
|
|
|
*
|
|
|
|
* PHP version 5.
|
|
|
|
*
|
|
|
|
* @category Bookmarking
|
|
|
|
* @package SemanticScuttle
|
|
|
|
* @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net>
|
|
|
|
* @author Christian Weiske <cweiske@cweiske.de>
|
|
|
|
* @author Eric Dane <ericdane@users.sourceforge.net>
|
|
|
|
* @license GPL http://www.gnu.org/licenses/gpl.html
|
|
|
|
* @link http://sourceforge.net/projects/semanticscuttle
|
|
|
|
*/
|
|
|
|
|
2009-10-03 23:25:07 +00:00
|
|
|
/**
|
|
|
|
* Prepare the application for unit testing
|
|
|
|
*/
|
|
|
|
$_SERVER['HTTP_HOST'] = 'http://localhost/';
|
|
|
|
define('UNIT_TEST_MODE', true);
|
2009-10-24 08:01:07 +00:00
|
|
|
|
2010-08-21 23:26:30 +00:00
|
|
|
if ('@data_dir@' == '@' . 'data_dir@') {
|
|
|
|
//non pear-install
|
|
|
|
require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
|
|
|
|
} else {
|
|
|
|
//pear installation; files are in include path
|
|
|
|
require_once 'SemanticScuttle/header.php';
|
|
|
|
}
|
2009-10-25 15:31:31 +00:00
|
|
|
require_once dirname(__FILE__) . '/TestBase.php';
|
2010-03-28 18:06:07 +00:00
|
|
|
require_once dirname(__FILE__) . '/TestBaseApi.php';
|
2010-02-07 16:50:17 +00:00
|
|
|
|
|
|
|
if ($GLOBALS['debugMode'] == true
|
|
|
|
&& $GLOBALS['dbtype'] == 'mysql4'
|
|
|
|
) {
|
|
|
|
echo "\n"
|
|
|
|
. '!!! The combination of debugMode and dbtype==mysql4'
|
|
|
|
. ' will wreck some tests' . "\n\n";
|
|
|
|
}
|
2009-10-03 23:25:07 +00:00
|
|
|
?>
|