From: Johan Cwiklinski Date: Tue, 2 Nov 2021 11:28:08 +0000 (+0100) Subject: Display errors during tests X-Git-Tag: 0.9.5.2~10 X-Git-Url: https://git.agnieray.net/?a=commitdiff_plain;h=3fbf998b4b59557a9a48d49e73b00748e92fa5d7;p=galette.git Display errors during tests See https://github.com/atoum/atoum/issues/879 --- diff --git a/galette/includes/galette.inc.php b/galette/includes/galette.inc.php index 3f28b9820..40abf8c78 100644 --- a/galette/includes/galette.inc.php +++ b/galette/includes/galette.inc.php @@ -122,13 +122,13 @@ if (!isset($_COOKIE['show_galette_dashboard'])) { } if (!defined('GALETTE_DISPLAY_ERRORS')) { - if (GALETTE_MODE === 'DEV') { + if (GALETTE_MODE === \Galette\Core\Galette::MODE_DEV) { define('GALETTE_DISPLAY_ERRORS', 1); } else { define('GALETTE_DISPLAY_ERRORS', 0); } } -ini_set('display_errors', 0); +ini_set('display_errors', (defined('GALETTE_TESTS') ? '1' : '0')); /*------------------------------------------------------------------------------ Logger stuff