From 9aeeb2605bf7a77886004be076cf6729b34a7722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Sat, 21 Feb 2015 11:51:52 +0100 Subject: [PATCH] Check for PHP configuration before executing unit tests --- tests/bootstrap.php | 7 +++++-- 1 file 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 @@ =') && + 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