tikiwiki/packages/tiki-pkg-tikimanager/gitonomy/gitlib/tests/bootstrap.php

15 lines
356 B
PHP
Raw Permalink Normal View History

2023-11-20 21:52:04 +01:00
<?php
require __DIR__.'/../vendor/autoload.php';
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$server = array_change_key_case($_SERVER, true);
$_SERVER['GIT_ENVS'] = [];
foreach (['PATH', 'SYSTEMROOT'] as $key) {
if (isset($server[$key])) {
$_SERVER['GIT_ENVS'][$key] = $server[$key];
}
}
unset($server);
}