futtern/tests/bootstrap.php
lubiana 96b246462a
All checks were successful
/ ls (pull_request) Successful in 1m31s
/ ls (push) Successful in 1m25s
/ ls (release) Successful in 1m0s
add open orders api route
2025-04-23 18:57:55 +02:00

19 lines
475 B
PHP

<?php declare(strict_types=1);
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\Filesystem\Filesystem;
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);
}
$fs = new Filesystem;
$fs->remove(dirname(__DIR__) . '/../var/cache/*');