🔐 Authentication System Test Suite

=== Phase 1: Environment Check ===
--------------------------------------------------
PHP Version: 8.2.28
✓ PHP version OK
✓ Extension pdo loaded
✓ Extension pdo_mysql loaded
✓ Extension json loaded
✓ Extension mbstring loaded

=== Phase 2: Autoload Check ===
--------------------------------------------------
Autoload path: /home/sdsystem/public_html/app/tests/../vendor/autoload.php
✓ autoload.php exists
✓ Autoload included successfully

=== Phase 3: Class Availability ===
--------------------------------------------------
✓ Class App\Models\Database found
✓ Class App\Models\User found
✓ Class App\Models\Session found
✓ Class App\Models\LoginAttempt found
✓ Class App\Controllers\AuthController found
✓ Class App\Exceptions\AuthException found
✓ Class App\Exceptions\DatabaseException found

=== Phase 4: Environment Variables ===
--------------------------------------------------
Env file path: /home/sdsystem/public_html/app/tests/../.env
✓ .env file exists
✓ Dotenv library available
✓ Environment variables loaded
✓ DB_HOST = localhost
✓ DB_NAME = sdsystem_security_bd
✓ DB_USER = sdsystem_policyusr
✓ DB_PASS = ******

=== Phase 5: Database Connection ===
--------------------------------------------------
✓ Database connection successful
✓ Query test passed
✓ Table 'users' exists
✓ Table 'roles' exists
✓ Table 'permissions' exists
✓ Table 'sessions' exists
✓ Table 'login_attempts' exists

=== Phase 6: Model Instantiation ===
--------------------------------------------------
✓ User model instantiated
✓ Session model instantiated
✓ LoginAttempt model instantiated
✓ AuthController instantiated

=== Phase 7: Basic Auth Tests ===
--------------------------------------------------
✓ Invalid email rejected correctly
✓ Short password rejected correctly

==================================================
Diagnostic complete!
==================================================