collection-crud/tests/bootstrap.php

15 lines
347 B
PHP
Raw Normal View History

2022-03-03 10:53:48 -05:00
<?php declare(strict_types=1);
2022-02-18 12:04:13 -05:00
use Symfony\Component\Dotenv\Dotenv;
2022-03-03 10:53:48 -05:00
require dirname(__DIR__) . '/vendor/autoload.php';
2022-02-18 12:04:13 -05:00
2023-07-21 10:35:15 -04:00
if (file_exists(dirname(__DIR__) . '/config/bootstrap.php'))
{
require dirname(__DIR__) . '/config/bootstrap.php';
}
elseif (method_exists(Dotenv::class, 'bootEnv'))
{
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');
2022-02-18 12:04:13 -05:00
}