From 00dc8c3158947cfd07926747c42c35c0a62f0248 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 7 Jun 2016 18:48:50 +0200 Subject: [PATCH] Enable both error reporting and assertions in 'tests' --- tests/index.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/index.php b/tests/index.php index d17ac71..a06e15b 100644 --- a/tests/index.php +++ b/tests/index.php @@ -16,10 +16,17 @@ * limitations under the License. */ -header('Content-type: text/html; charset=utf-8'); +// enable error reporting error_reporting(E_ALL); ini_set('display_errors', 'stdout'); +// enable assertions +ini_set('assert.active', 1); +ini_set('zend.assertions', 1); +ini_set('assert.exception', 1); + +header('Content-type: text/html; charset=utf-8'); + $db = new PDO('mysql:dbname=php_auth;host=127.0.0.1;charset=utf8mb4', 'root', ''); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);