Autoload::autoload_test PHP Method

autoload_test() public static method

public static autoload_test ( $name )
    public static function autoload_test($name)
    {
        $path = dirname(__DIR__);
        $file = $path . '/tests/analyzer/' . str_replace('\\', DIRECTORY_SEPARATOR, $name) . '.php';
        if (file_exists($file)) {
            include $file;
        }
        $file = $path . '/tests/tokenizer/' . str_replace('\\', DIRECTORY_SEPARATOR, $name) . '.php';
        if (file_exists($file)) {
            include $file;
        }
    }