Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/westberliner/checksum.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.php')
-rw-r--r--bootstrap.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/bootstrap.php b/bootstrap.php
new file mode 100644
index 0000000..fb48c9e
--- /dev/null
+++ b/bootstrap.php
@@ -0,0 +1,14 @@
+<?php
+
+define('PHPUNIT_RUN', 1);
+use Composer\Autoload\ClassLoader;
+
+include_once __DIR__.'/vendor/autoload.php';
+$serverPath = __DIR__ . '/../nextcloud';
+include_once $serverPath.'/3rdparty/autoload.php';
+require_once $serverPath. '/lib/base.php';
+
+$classLoader = new ClassLoader();
+$classLoader->addPsr4("OCP\\", $serverPath . '/lib/public', true);
+$classLoader->addPsr4("OC\\", $serverPath . '/lib/private', true);
+$classLoader->register();