bootstrap.php 647 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. error_reporting(E_ALL | E_STRICT);
  3. // include the composer autoloader
  4. $autoloader = require __DIR__ . '/../vendor/autoload.php';
  5. // autoload abstract TestCase classes in test directory
  6. $autoloader->add('Omnipay', __DIR__);
  7. define('UNIONPAY_ASSET_DIR', realpath(__DIR__ . '/Assets'));
  8. $configFile = realpath(__DIR__ . '/config.php');
  9. if (file_exists($configFile) && false) {
  10. include_once $configFile;
  11. } else {
  12. include_once realpath(__DIR__ . '/config.dist.php');
  13. }
  14. if (! function_exists('dd')) {
  15. function dd()
  16. {
  17. foreach (func_get_args() as $arg) {
  18. var_dump($arg);
  19. }
  20. exit(0);
  21. }
  22. }