diff --git a/.gitignore b/.gitignore index 9f11b75..61f95bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,6 @@ +# IntelliJ .idea/ + +# Composer +vendor/ +composer.phar diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..2bbddbe --- /dev/null +++ b/composer.lock @@ -0,0 +1,21 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "839d92eeb39e32dd86e49a1ae7da1028", + "content-hash": "470ef7155ec3094dd7625e69e1fc11c4", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.5.0", + "ext-openssl": "*" + }, + "platform-dev": [] +} diff --git a/tests/index.php b/tests/index.php index a06e15b..e130fcb 100644 --- a/tests/index.php +++ b/tests/index.php @@ -27,11 +27,11 @@ ini_set('assert.exception', 1); header('Content-type: text/html; charset=utf-8'); +require __DIR__.'/../vendor/autoload.php'; + $db = new PDO('mysql:dbname=php_auth;host=127.0.0.1;charset=utf8mb4', 'root', ''); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); -require __DIR__.'/../src/Auth.php'; - $auth = new \Delight\Auth\Auth($db); $result = processRequestData($auth);