This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/vendor/symfony-cmf/routing/Tests/bootstrap.php

20 lines
523 B
PHP

<?php
$file = __DIR__.'/../vendor/autoload.php';
if (!file_exists($file)) {
throw new RuntimeException('Install dependencies to run test suite.');
}
require_once $file;
spl_autoload_register(function ($class) {
if (0 === strpos($class, 'Symfony\Cmf\Component\Routing\\')) {
$path = __DIR__.'/../'.implode('/', array_slice(explode('\\', $class), 4)).'.php';
if (!stream_resolve_include_path($path)) {
return false;
}
require_once $path;
return true;
}
});