From 22dcb6e2e42549f9b4aabad0260dd086bd704368 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 2 Jan 2015 09:46:13 +0100 Subject: [PATCH] define PHPUNIT constant only if not already set --- tests/bootstrap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 57bf2fa0..12d406cf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -3,7 +3,9 @@ global $RUNTIME_NOAPPS; $RUNTIME_NOAPPS = true; -define('PHPUNIT_RUN', 1); +if (!defined('PHPUNIT_RUN')) { + define('PHPUNIT_RUN', 1); +} require_once __DIR__.'/../../../lib/base.php';