summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-09-28 13:20:49 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2023-10-02 11:33:14 +0200
commit0e64ec6550148757ade13dd45f444776651db639 (patch)
treed9c7c058458915be4feba676c510c47d7618ca30 /tests
parent0cb489d6caba3966f00f6e1d01790df9c6872fc2 (diff)
downloadnextcloud-server-0e64ec6550148757ade13dd45f444776651db639.tar.gz
nextcloud-server-0e64ec6550148757ade13dd45f444776651db639.zip
chore: Install phpunit via vendor bin
This means we can all run the same version. And when switching to stableX it can pull the corresponding version too. Also local dev envs and CI run the same phpunit. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/bootstrap.php6
-rw-r--r--tests/phpunit-autotest.xml2
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 7e5e4c7c547..af71006cc39 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -17,4 +17,8 @@ require_once __DIR__ . '/../lib/base.php';
OC_Hook::clear();
-set_include_path(get_include_path() . PATH_SEPARATOR . '/usr/share/php');
+set_include_path(
+ get_include_path() . PATH_SEPARATOR
+ . '/usr/share/php' . PATH_SEPARATOR
+ . __DIR__ . '/..'
+);
diff --git a/tests/phpunit-autotest.xml b/tests/phpunit-autotest.xml
index d2d45b50db7..1b2729323e6 100644
--- a/tests/phpunit-autotest.xml
+++ b/tests/phpunit-autotest.xml
@@ -7,7 +7,7 @@
timeoutForMediumTests="900"
timeoutForLargeTests="900"
convertDeprecationsToExceptions="true"
- xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
+ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd">
<testsuite name="ownCloud">
<directory suffix=".php">lib/</directory>
<directory suffix=".php">Core/</directory>