mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
Add PHPUnit setup (Phase 0) and pure-logic tests (Phase 1): Crypto, EmailObfuscator, SystemController helpers, StudentEmail, TfeController OG tags
This commit is contained in:
17
tests/bootstrap.php
Normal file
17
tests/bootstrap.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHPUnit bootstrap for XAMXAM.
|
||||
*
|
||||
* Sets up autoloading, constants, and any environment needed before tests run.
|
||||
* Uses the production app/.env for APP_KEY (Crypto tests need a real key).
|
||||
*/
|
||||
|
||||
// Composer autoloader
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Define application root (points to app/)
|
||||
define('APP_ROOT', realpath(__DIR__ . '/../app'));
|
||||
|
||||
// Storage directory for tests — use app/storage/
|
||||
define('STORAGE_ROOT', APP_ROOT . '/storage');
|
||||
Reference in New Issue
Block a user