1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-03 22:57:27 +02:00

Enable both error reporting and assertions in 'tests'

This commit is contained in:
Marco
2016-06-07 18:48:50 +02:00
parent e074474955
commit 00dc8c3158

View File

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