aboutsummaryrefslogtreecommitdiffstats
path: root/tests/autoload.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/autoload.php')
-rw-r--r--tests/autoload.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/autoload.php b/tests/autoload.php
new file mode 100644
index 00000000000..05fc3852924
--- /dev/null
+++ b/tests/autoload.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+require_once __DIR__ . '/../lib/base.php';
+
+/**
+ * This is a file that applications can require to be able to autoload the class Test\TestCase from Nextcloud tests
+ */
+
+\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);