aboutsummaryrefslogtreecommitdiff
path: root/tests/prepare.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-08-22 01:26:30 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-08-22 01:26:30 +0200
commitf93aa6c7aceeb7ed9ea899cfe232b3bd097b2422 (patch)
tree8ea92787b9b24f7345db8a8ca33f4384aefd0a02 /tests/prepare.php
parentaba3327b5b8beffea75687a11ccf034f5e0d0969 (diff)
downloadsemanticscuttle-f93aa6c7aceeb7ed9ea899cfe232b3bd097b2422.tar.gz
semanticscuttle-f93aa6c7aceeb7ed9ea899cfe232b3bd097b2422.tar.bz2
make files use pear directories
Diffstat (limited to 'tests/prepare.php')
-rw-r--r--tests/prepare.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/prepare.php b/tests/prepare.php
index ce9cd1c..6afc284 100644
--- a/tests/prepare.php
+++ b/tests/prepare.php
@@ -19,7 +19,13 @@
$_SERVER['HTTP_HOST'] = 'http://localhost/';
define('UNIT_TEST_MODE', true);
-require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
+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';
+}
require_once dirname(__FILE__) . '/TestBase.php';
require_once dirname(__FILE__) . '/TestBaseApi.php';