first commit
This commit is contained in:
16
modules/mailchimppro/vendor/drewm/mailchimp-api/tests/bootstrap.php
vendored
Normal file
16
modules/mailchimppro/vendor/drewm/mailchimp-api/tests/bootstrap.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
\error_reporting(E_ALL);
|
||||
|
||||
include_once \dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
if (!\class_exists('Dotenv\Dotenv')) {
|
||||
throw new \RuntimeException('You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
|
||||
}
|
||||
|
||||
$env_file_path = __DIR__ . '/../';
|
||||
|
||||
if (file_exists($env_file_path . '.env')) {
|
||||
$dotenv = new Dotenv\Dotenv($env_file_path);
|
||||
$dotenv->load();
|
||||
}
|
||||
Reference in New Issue
Block a user