Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * Bootstrapping File for phpseclib Test Suite
 *
 * @license http://www.opensource.org/licenses/mit-license.html MIT License
 */

date_default_timezone_set('UTC');

// 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/',
    dirname(__FILE__) . '/',
    get_include_path(),
)));

require_once 'Crypt/Random.php';

function phpseclib_autoload($class)
{
    $file = str_replace('_', '/', $class) . '.php';

    if (phpseclib_resolve_include_path($file)) {
        // @codingStandardsIgnoreStart
        require $file;
        // @codingStandardsIgnoreEnd
    }
}

spl_autoload_register('phpseclib_autoload');

Commits for Nextrek/Aiba_backup/vendor/phpseclib/phpseclib/tests/bootstrap.php

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000