1
0
forked from qwerty/milfs
milfskleper/rest/vendor/nikic/fast-route/test/bootstrap.php

12 lines
374 B
PHP
Raw Normal View History

2018-10-13 17:01:33 +00:00
<?php
require_once __DIR__ . '/../src/functions.php';
spl_autoload_register(function ($class) {
if (strpos($class, 'FastRoute\\') === 0) {
$dir = strcasecmp(substr($class, -4), 'Test') ? 'src/' : 'test/';
$name = substr($class, strlen('FastRoute'));
require __DIR__ . '/../' . $dir . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
}
});