Skip to content
Snippets Groups Projects
Commit 175ff491 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Bootstrap for tests provided

parent 45a0c080
Branches
Tags
No related merge requests found
<?php
error_reporting(E_ALL);
if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) {
date_default_timezone_set(@date_default_timezone_get());
}
function includeIfExists($file)
{
return file_exists($file) ? include $file : false;
}
if (!$autoLoader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) {
echo 'You must set up the project dependencies, run the following command from the project root:' . PHP_EOL .
'php composer.phar install' . PHP_EOL;
exit(1);
}
return $autoLoader;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment