1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00
tgseclib/tests/bootstrap.php

23 lines
546 B
PHP

<?php
/**
* Bootstrapping File for phpseclib Test Suite
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
// Set up include path accordingly. This is especially required because some
// class files of phpseclib require() other dependencies.
set_include_path(implode(PATH_SEPARATOR, array(
dirname(__FILE__) . '/../phpseclib/',
get_include_path(),
)));
function phpseclib_autoload($class)
{
$file = str_replace('_', '/', $class) . '.php';
require $file;
}
spl_autoload_register('phpseclib_autoload');