Skip to content

Commit 9fb8b91

Browse files
tests: add phpstan/phpstan-phpunit (#1506)
1 parent e89be2c commit 9fb8b91

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434
},
3535
"require-dev" : {
3636
"friendsofphp/php-cs-fixer": "^2.19",
37+
"monolog/monolog": "^1.27",
3738
"phpstan/phpstan": "^0.12 || ^1.0",
38-
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6",
39-
"monolog/monolog": "^1.27"
39+
"phpstan/phpstan-phpunit": "^1.0",
40+
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.6"
4041
},
4142
"suggest" : {
4243
"ext-curl" : "*",

phpstan.neon

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ parameters:
22
level: 1
33
bootstrapFiles:
44
- tests/bootstrap.php
5+
ignoreErrors:
6+
-
7+
message: '#Trying to mock an undefined method afterResponseCallback\(\) on class stdClass\.#'
8+
path: tests/*
9+
includes:
10+
- vendor/phpstan/phpstan-phpunit/extension.neon
11+
- vendor/phpstan/phpstan-phpunit/rules.neon

tests/Sabre/DAVACL/FS/CollectionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class CollectionTest extends FileTest
88
{
99
public function setup(): void
1010
{
11+
parent::setup();
1112
$this->path = SABRE_TEMPDIR;
1213
$this->sut = new Collection($this->path, $this->acl, $this->owner);
1314
}

0 commit comments

Comments
 (0)