mirror of
https://github.com/FriendsOfSymfony/FOSHttpCache.git
synced 2026-03-24 06:52:11 +01:00
30 lines
960 B
PHP
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;
|