From 9f10f923fe061a71227a5063216e0846f2a9beb7 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 12 Sep 2015 14:49:53 +0100 Subject: [PATCH] chdir() in phpunit bootstrap --- tests/bootstrap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a39b75c2..bd9ddf1c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -7,6 +7,7 @@ define("CLI_LOG_LEVEL", 50); $_SERVER['QUERY_STRING'] = '/'; +chdir(dirname(dirname(__FILE__))); require_once "core/_bootstrap.inc.php"; if(is_null(User::by_name("demo"))) {