phpunit support

This commit is contained in:
hakutaku
2025-08-18 14:21:01 +03:00
parent 8a025310bd
commit fa3dcb7c35
8 changed files with 2014 additions and 1 deletions

13
tests/bootstrap.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}