My first commit of codes
This commit is contained in:
18
vendor/vlucas/phpdotenv/tests/bootstrap.php
vendored
Normal file
18
vendor/vlucas/phpdotenv/tests/bootstrap.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
error_reporting(-1);
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
/**
|
||||
* Path trickery ensures test suite will always run, standalone or within
|
||||
* another composer package. Designed to find composer autoloader and require
|
||||
*/
|
||||
$vendorPos = strpos(__DIR__, 'vendor/vlucas/phpdotenv');
|
||||
if($vendorPos !== false) {
|
||||
// Package has been cloned within another composer package, resolve path to autoloader
|
||||
$vendorDir = substr(__DIR__, 0, $vendorPos) . 'vendor/';
|
||||
$loader = require $vendorDir . 'autoload.php';
|
||||
} else {
|
||||
// Package itself (cloned standalone)
|
||||
$loader = require __DIR__.'/../vendor/autoload.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user