Skip to content

Commit 8fb5b95

Browse files
committed
chore: ignore missing override attribute for psalm
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent d48ba95 commit 8fb5b95

4 files changed

Lines changed: 188 additions & 109 deletions

File tree

psalm.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@
1111
xsi:schemaLocation="https://getpsalm.org/schema/config vendor-bin/psalm/vendor/vimeo/psalm/config.xsd"
1212
errorBaseline="tests/psalm-baseline.xml"
1313
phpVersion="8.1"
14+
ensureOverrideAttribute="false"
1415
>
1516
<stubs>
1617
<file name="tests/stub.phpstub" preloadClasses="true"/>
1718
</stubs>
1819
<projectFiles>
19-
<directory name="lib" />
20+
<directory name="lib"/>
2021
<ignoreFiles>
21-
<directory name="vendor" />
22+
<directory name="vendor"/>
2223
</ignoreFiles>
2324
</projectFiles>
2425
<extraFiles>
25-
<directory name="vendor" />
26+
<directory name="vendor"/>
2627
</extraFiles>
2728
</psalm>

tests/bootstrap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
66
* SPDX-License-Identifier: AGPL-3.0-or-later
77
*/
8+
9+
use OCP\App\IAppManager;
10+
811
if (!defined('PHPUNIT_RUN')) {
912
define('PHPUNIT_RUN', 1);
1013
}
1114

1215
require_once __DIR__ . '/../../../lib/base.php';
1316

14-
if (!class_exists('\PHPUnit\Framework\TestCase')) {
15-
require_once('PHPUnit/Autoload.php');
16-
}
17-
\OC_App::loadApp('serverinfo');
17+
\OC::$server->get(IAppManager::class)->loadApp('serverinfo');
1818
OC_Hook::clear();

tests/phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<directory suffix=".php">../../serverinfo/tests</directory>
1818
</exclude>
1919
</source>
20-
<testsuite name="Serverinfo tests">
20+
<testsuite name="serverinfo tests">
2121
<directory suffix="Test.php">.</directory>
2222
</testsuite>
2323
</phpunit>

0 commit comments

Comments
 (0)