diff options
author | Steffen Lindner <mail@steffen-lindner.de> | 2015-09-02 16:41:18 +0300 |
---|---|---|
committer | Steffen Lindner <mail@steffen-lindner.de> | 2015-09-02 16:41:18 +0300 |
commit | ce7364ecdaeb160e1a96b27b5d946eb416ed0ff0 (patch) | |
tree | 5ab67a497daf69a9dadf8b5bfaff286904179725 /tests/bootstrap.php | |
parent | 4aed4699efc493be1652254ae8d5b779b98e542e (diff) |
Add version check
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r-- | tests/bootstrap.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php index b07f0a0f4..32672aabe 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,7 +4,10 @@ define('PHPUNIT_RUN', 1); require_once __DIR__.'/../../../lib/base.php'; require_once __DIR__.'/../vendor/autoload.php'; -\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); + +if (version_compare(implode('.', \OCP\Util::getVersion()), '8.2', '<=')) { + \OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); +} if(!class_exists('PHPUnit_Framework_TestCase')) { require_once('PHPUnit/Autoload.php'); |