futtern/tests/bootstrap.php
lubiana 2b5d943116
All checks were successful
/ ls (pull_request) Successful in 1m27s
/ ls (push) Successful in 1m24s
enable parallel testing
2025-02-02 21:01:45 +01:00

15 lines
356 B
PHP

<?php declare(strict_types=1);
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__) . '/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv)->bootEnv(dirname(__DIR__) . '/.env');
$token = $_SERVER['TEST_TOKEN'] ?? '';
$_ENV['DATABASE_URL'] .= $token;
}
if ($_SERVER['APP_DEBUG']) {
umask(0o000);
}