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);