Skip to content

Commit 5b3ab7c

Browse files
committed
attempt to fix tests
1 parent 5740d3a commit 5b3ab7c

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

tests/expected_report.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ FILE ERRORS WARNINGS
66
tests/input/array_indentation.php 10 0
77
tests/input/arrow-functions-format.php 10 0
88
tests/input/assignment-operators.php 4 0
9-
tests/input/class-references.php 10 0
9+
tests/input/class-references.php 11 0
1010
tests/input/concatenation_spacing.php 24 0
1111
tests/input/constants-no-lsb.php 2 0
1212
tests/input/constants-var.php 6 0
1313
tests/input/ControlStructures.php 18 0
14+
tests/input/disallow-multiple-obj-structure.php 1 0
1415
tests/input/doc-comment-spacing.php 10 0
1516
tests/input/duplicate-assignment-variable.php 1 0
1617
tests/input/EarlyReturn.php 6 0
@@ -31,17 +32,17 @@ tests/input/return_type_on_methods.php 17 0
3132
tests/input/semicolon_spacing.php 3 0
3233
tests/input/spread-operator.php 6 0
3334
tests/input/static-closures.php 1 0
34-
tests/input/superfluous-naming.php 11 0
35+
tests/input/superfluous-naming.php 14 0
3536
tests/input/test-case.php 8 0
3637
tests/input/trailing_comma_on_array.php 1 0
37-
tests/input/traits-uses.php 11 0
38+
tests/input/traits-uses.php 12 0
3839
tests/input/type-hints.php 4 0
3940
tests/input/UnusedVariables.php 1 0
4041
tests/input/use-ordering.php 1 0
4142
tests/input/useless-semicolon.php 2 0
4243
tests/input/UselessConditions.php 20 0
4344
----------------------------------------------------------------------
44-
A TOTAL OF 310 ERRORS AND 0 WARNINGS WERE FOUND IN 37 FILES
45+
A TOTAL OF 389 ERRORS AND 0 WARNINGS WERE FOUND IN 42 FIL
4546
----------------------------------------------------------------------
4647
PHPCBF CAN FIX 249 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
4748
----------------------------------------------------------------------
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
class What implements Whatever
6+
{
7+
}
8+
9+
interface Whatever
10+
{
11+
}

tests/php-compatibility.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ index 1e809f9..490fcbd 100644
2121
-tests/input/example-class.php 34 0
2222
-tests/input/forbidden-comments.php 8 0
2323
+tests/input/example-class.php 39 0
24-
+tests/input/forbidden-comments.php 14 0
24+
+tests/input/forbidden-comments.php 16 0
2525
tests/input/forbidden-functions.php 6 0
2626
tests/input/inline_type_hint_assertions.php 7 0
2727
tests/input/LowCaseTypes.php 2 0

0 commit comments

Comments
 (0)