/** * registriert ein neues Protokoll * * @static * * @param string $proto * @param string $dir */ public static function register($proto, $dir) { $protocol = $proto == null ? static::$proto : $proto; static::$protocolMaps[$protocol] = []; static::$basedir = $dir; stream_wrapper_register($protocol, get_called_class()); }
public static function setUpBeforeClass() { static::$basedir = realpath(substr(__DIR__ . '/', 0, strrpos(__DIR__ . '/', '/tests/') + 7)); require_once static::$basedir . '/_bootstrap.php'; static::$appdir = static::$basedir . '/app'; static::$confdir = static::$appdir . '/config'; $b = new Bootstrap(self::getUserOptions()); }
public static function setUpBeforeClass() { static::$basedir = realpath(substr(__DIR__ . '/', 0, strrpos(__DIR__ . '/', '/tests/') + 7)); require_once static::$basedir . '/_bootstrap.php'; }