Files
archived-FOSHttpCache/tests/bootstrap.php
David Buchmann 769fe992b8 run phpunit in github workflow
setting up old varnish versions did not work, commenting out the legacy
builds
2021-12-21 10:37:23 +01:00

30 lines
960 B
PHP

<?php
/*
* This file is part of the FOSHttpCache package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$file = __DIR__.'/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies using composer to run the test suite.');
}
if (!defined('VARNISH_FILE')) {
if (getenv('VARNISH_VERSION')
&& (0 === strncmp('3', getenv('VARNISH_VERSION'), 1))
) {
define('VARNISH_FILE', dirname(__DIR__).'/tests/Functional/Fixtures/varnish-3/fos.vcl');
} elseif (getenv('VARNISH_MODULES_VERSION')) {
define('VARNISH_FILE', dirname(__DIR__).'/tests/Functional/Fixtures/varnish/fos_xkey.vcl');
} else {
define('VARNISH_FILE', dirname(__DIR__).'/tests/Functional/Fixtures/varnish/fos.vcl');
}
}
$autoload = require_once $file;