Skip to content

Commit 5158528

Browse files
committed
:octocat: add tests to static analysis
1 parent fe3c733 commit 5158528

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!--<file>examples</file>-->
88
<file>src</file>
9-
<!--<file>tests</file>-->
9+
<file>tests</file>
1010

1111
<config name="installed_paths" value="../../slevomat/coding-standard"/>
1212

phpstan-baseline.neon

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,18 @@ parameters:
99
message: "#^Parameter \\$length of function file_get_contents expects int\\<0, max\\>\\|null, int\\|null given\\.$#"
1010
count: 1
1111
path: src/File.php
12+
13+
-
14+
message: "#^Method chillerlan\\\\UtilitiesTest\\\\StrTest\\:\\:containsAllProvider\\(\\) should return array\\<string, array\\{array\\<int, string\\>, bool, bool\\}\\> but returns array\\{empty\\: array\\{array\\{\\}, false, true\\}, filtered\\: array\\{array\\{1, array\\{\\}, true\\}, false, true\\}, default\\: array\\{array\\{'world', 'Hello'\\}, false, true\\}, case mismatch\\: array\\{array\\{'World', 'hello'\\}, false, false\\}, ignore case\\: array\\{array\\{'World', 'hello'\\}, true, true\\}\\}\\.$#"
15+
count: 1
16+
path: tests/StrTest.php
17+
18+
-
19+
message: "#^Method chillerlan\\\\UtilitiesTest\\\\StrTest\\:\\:containsAnyProvider\\(\\) should return array\\<string, array\\{array\\<int, string\\>, bool, bool\\}\\> but returns array\\{empty\\: array\\{array\\{\\}, false, true\\}, filtered\\: array\\{array\\{1, array\\{\\}, true\\}, false, true\\}, default\\: array\\{array\\{'nope', 'Hello'\\}, false, true\\}, case mismatch\\: array\\{array\\{'nope', 'hello'\\}, false, false\\}, ignore case\\: array\\{array\\{'nope', 'hello'\\}, true, true\\}\\}\\.$#"
20+
count: 1
21+
path: tests/StrTest.php
22+
23+
-
24+
message: "#^Method chillerlan\\\\UtilitiesTest\\\\StrTest\\:\\:startsWithProvider\\(\\) should return array\\<string, array\\{array\\<int, string\\>, bool, bool\\}\\> but returns array\\{empty\\: array\\{array\\{\\}, false, true\\}, filtered\\: array\\{array\\{1, array\\{\\}, true\\}, false, true\\}, default\\: array\\{array\\{'nope', 'Hello'\\}, false, true\\}, case mismatch\\: array\\{array\\{'nope', 'hello'\\}, false, false\\}, ignore case\\: array\\{array\\{'nope', 'hello'\\}, true, true\\}\\}\\.$#"
25+
count: 1
26+
path: tests/StrTest.php

phpstan.dist.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parameters:
66
paths:
77
# - examples
88
- src
9-
# - tests
9+
- tests
1010

1111
treatPhpDocTypesAsCertain: false
1212

0 commit comments

Comments
 (0)