summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoricewind1991 <robin@icewind.nl>2014-03-24 13:01:37 +0100
committericewind1991 <robin@icewind.nl>2014-03-24 13:01:37 +0100
commit4c8a83e82fe4dfe5b83e09194060ecbf44f44791 (patch)
tree2880ab34bbd9696cff7dadc2d79608d1afb4628e /tests
parentabdc823bb69600c3a4fc23e09f9de5819b57f56e (diff)
parenta8eb7a5092fad987b96f9dac947dc9bf4a2b0eaf (diff)
downloadnextcloud-server-4c8a83e82fe4dfe5b83e09194060ecbf44f44791.tar.gz
nextcloud-server-4c8a83e82fe4dfe5b83e09194060ecbf44f44791.zip
Merge pull request #7714 from owncloud/phpunit-config
Allow setting the config dir to use as enviroment variable for phpunit
Diffstat (limited to 'tests')
-rw-r--r--tests/bootstrap.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 581cfcff9f3..70de7cd1c44 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -3,9 +3,14 @@
define('PHPUNIT_RUN', 1);
-require_once __DIR__.'/../lib/base.php';
+$configDir = getenv('CONFIG_DIR');
+if ($configDir) {
+ define('PHPUNIT_CONFIG_DIR', $configDir);
+}
+
+require_once __DIR__ . '/../lib/base.php';
-if(!class_exists('PHPUnit_Framework_TestCase')) {
+if (!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');
}