define PHPUNIT constant only if not already set

This commit is contained in:
Morris Jobke 2015-01-02 09:46:13 +01:00
Родитель e851f57e2a
Коммит 22dcb6e2e4
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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';