summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-22 20:36:07 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-22 20:36:07 +0100
commit61b00ac821a244fe2583a95d9e33891d348c4de8 (patch)
treeb7ee5426a4715d5fcd5e8f87b0cc3e8c512e0775
parentef09e5d395ac40bc8fcd2ed7d39555cf22ae8e7b (diff)
parent9aeeb2605bf7a77886004be076cf6729b34a7722 (diff)
downloadnextcloud-server-61b00ac821a244fe2583a95d9e33891d348c4de8.tar.gz
nextcloud-server-61b00ac821a244fe2583a95d9e33891d348c4de8.zip
Merge pull request #14413 from owncloud/verify-php-before-running-tests-2
Check for PHP configuration before executing unit tests
-rw-r--r--tests/bootstrap.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 8dd7784d430..e1dc1076a4f 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -1,6 +1,4 @@
<?php
-
-
define('PHPUNIT_RUN', 1);
$configDir = getenv('CONFIG_DIR');
@@ -8,6 +6,11 @@ if ($configDir) {
define('PHPUNIT_CONFIG_DIR', $configDir);
}
+if(version_compare(phpversion(), '5.6.0', '>=') &&
+ ini_get('always_populate_raw_post_data') !== '-1') {
+ throw new Exception("'always_populate_raw_post_data' has to be set to '-1' in your php.ini");
+}
+
require_once __DIR__ . '/../lib/base.php';
// load minimum set of apps