Esempio n. 1
0
 /**
  * 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());
 }
Esempio n. 2
0
 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());
 }
Esempio n. 3
0
 public static function setUpBeforeClass()
 {
     static::$basedir = realpath(substr(__DIR__ . '/', 0, strrpos(__DIR__ . '/', '/tests/') + 7));
     require_once static::$basedir . '/_bootstrap.php';
 }