Skip to content

Commit b3be025

Browse files
committed
Fix tests
1 parent 183443e commit b3be025

File tree

8 files changed

+8
-11
lines changed

8 files changed

+8
-11
lines changed

tests/PHPStan/Command/CommandHelperTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public function dataParameters(): array
205205
__DIR__ . DIRECTORY_SEPARATOR . 'relative-paths' . DIRECTORY_SEPARATOR . 'nested' . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'there.php',
206206
__DIR__ . DIRECTORY_SEPARATOR . 'relative-paths' . DIRECTORY_SEPARATOR . 'up.php',
207207
],
208+
'reportUnmatchedIgnoredErrors' => false,
208209
'ignoreErrors' => [
209210
[
210211
'message' => '#aaa#',

tests/PHPStan/Command/exclude-paths/full.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ parameters:
33
analyse:
44
- test
55
analyseAndScan:
6-
- test2
6+
- test2 (?)

tests/PHPStan/Command/exclude-paths/including-mixed.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ parameters:
66
analyse:
77
- test
88
analyseAndScan:
9-
- test2
9+
- test2 (?)

tests/PHPStan/Command/exclude-paths/including.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ includes:
44
parameters:
55
excludePaths:
66
analyse:
7-
- test2
7+
- test2 (?)
88
analyseAndScan:
9-
- test3
9+
- test3 (?)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
parameters:
22
excludePaths:
33
- test
4-
- test2
4+
- test2 (?)

tests/PHPStan/Command/exclude-paths/test/.gitkeep

Whitespace-only changes.

tests/PHPStan/Command/relative-paths/nested/nested.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ parameters:
33
- here.php
44
- test/there.php
55
- ../up.php
6+
reportUnmatchedIgnoredErrors: false
67
ignoreErrors:
78
-
89
message: '#aaa#'

tests/PHPStan/File/FileExcluderTest.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function dataExcludeOnUnix(): array
142142
],
143143
[
144144
__DIR__ . '/data/excluded-file.php',
145-
[__DIR__],
145+
[__DIR__ . '/*'],
146146
true,
147147
],
148148
[
@@ -170,11 +170,6 @@ public function dataExcludeOnUnix(): array
170170
[__DIR__ . '/data/[pP]arse-[eE]rror.ph[pP]'],
171171
true,
172172
],
173-
[
174-
__DIR__ . '/data/parse-error.php',
175-
['*/tests/PHPStan/File/data/*'],
176-
true,
177-
],
178173
[
179174
__DIR__ . '/data/parse-error.php',
180175
[__DIR__ . '/aaa'],

0 commit comments

Comments
 (0)