暂无描述

bootstrap.php 620B

12345678910111213141516171819
  1. <?php
  2. error_reporting(-1);
  3. date_default_timezone_set('UTC');
  4. /**
  5. * Path trickery ensures test suite will always run, standalone or within
  6. * another composer package. Designed to find composer autoloader and require
  7. */
  8. $vendorPos = strpos(__DIR__, 'vendor/vlucas/phpdotenv');
  9. if($vendorPos !== false) {
  10. // Package has been cloned within another composer package, resolve path to autoloader
  11. $vendorDir = substr(__DIR__, 0, $vendorPos) . 'vendor/';
  12. $loader = require $vendorDir . 'autoload.php';
  13. } else {
  14. // Package itself (cloned standalone)
  15. $loader = require __DIR__.'/../vendor/autoload.php';
  16. }