1
0
mirror of synced 2024-11-24 22:36:06 +03:00
api-client-php/tests/bootstrap.php

17 lines
430 B
PHP
Raw Permalink Normal View History

<?php
2023-06-21 12:57:37 +03:00
use Symfony\Component\Dotenv\Dotenv;
2018-01-10 11:35:57 +03:00
if (function_exists('date_default_timezone_set')
&& function_exists('date_default_timezone_get')
) {
date_default_timezone_set(date_default_timezone_get());
2018-01-10 11:35:57 +03:00
}
2023-06-21 12:57:37 +03:00
if (class_exists(Dotenv::class) and file_exists(__DIR__.'/.env')) {
(new Dotenv())->load(__DIR__.'/.env');
}
2018-01-10 11:35:57 +03:00
$loader = include dirname(__DIR__) . '/vendor/autoload.php';
$loader->add('RetailCrm\\Test', __DIR__);