summaryrefslogtreecommitdiffstats
path: root/php-nikic-fast-route-tests-autoloader.php
blob: c484d515c98b5e6e8df7249b964dd27090d444d4 (plain)
1
2
3
4
5
6
7
8
9
10
<?php

spl_autoload_register(function($class) {
    if (strpos($class, 'FastRoute\\') === 0 && strcasecmp(substr($class, -4), 'Test') === 0) {
        $name = substr($class, strlen('FastRoute'));
        require __DIR__ . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
    }
});

require_once 'BUILDROOT_PATH/bootstrap.php';