chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
raw
history blame contribute delete
458 Bytes
<?php
declare(strict_types=1);
namespace Mautic\CoreBundle\Test;
use Symfony\Component\Dotenv\Dotenv;
final class EnvLoader
{
/**
* Loads the env variables from .env(.*) files for PHPUNIT tests.
*/
public static function load(): void
{
$reflection = new \ReflectionClass(Dotenv::class);
$vendorRootPath = dirname($reflection->getFileName(), 4);
(new Dotenv())->loadEnv($vendorRootPath.'/.env');
}
}