mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
23 lines
546 B
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');
|