Skip to content

Commit 1c8596e

Browse files
Merge pull request #194 from doctrine/version-8/update-expectations
Update tests expectations based on bugfix in dependencies
2 parents 903511e + 782e493 commit 1c8596e

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"require": {
2424
"php": "^7.2",
2525
"dealerdirect/phpcodesniffer-composer-installer": "^0.6.2",
26-
"slevomat/coding-standard": "^6.2.0",
27-
"squizlabs/php_codesniffer": "^3.5.4"
26+
"slevomat/coding-standard": "^6.3.8",
27+
"squizlabs/php_codesniffer": "^3.5.5"
2828
},
2929
"config": {
3030
"sort-packages": true

tests/expected_report.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tests/input/class-references.php 10 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
13-
tests/input/ControlStructures.php 17 0
13+
tests/input/ControlStructures.php 18 0
1414
tests/input/doc-comment-spacing.php 10 0
1515
tests/input/duplicate-assignment-variable.php 1 0
1616
tests/input/EarlyReturn.php 6 0
@@ -41,9 +41,9 @@ tests/input/use-ordering.php 1 0
4141
tests/input/useless-semicolon.php 2 0
4242
tests/input/UselessConditions.php 20 0
4343
----------------------------------------------------------------------
44-
A TOTAL OF 309 ERRORS AND 0 WARNINGS WERE FOUND IN 37 FILES
44+
A TOTAL OF 310 ERRORS AND 0 WARNINGS WERE FOUND IN 37 FILES
4545
----------------------------------------------------------------------
46-
PHPCBF CAN FIX 248 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
46+
PHPCBF CAN FIX 249 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
4747
----------------------------------------------------------------------
4848

4949

tests/fixed/ControlStructures.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ class ControlStructures
1919
public function varAndIfNoSpaceBetween(): iterable
2020
{
2121
$var = 1;
22-
if (self::VERSION === 0) {
23-
yield 0;
22+
if (self::VERSION !== 0) {
23+
return;
2424
}
25+
26+
yield 0;
2527
}
2628

2729
/**

tests/php-compatibility.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ index 1e809f9..490fcbd 100644
1313
+tests/input/concatenation_spacing.php 49 0
1414
tests/input/constants-no-lsb.php 2 0
1515
tests/input/constants-var.php 6 0
16-
-tests/input/ControlStructures.php 17 0
17-
+tests/input/ControlStructures.php 27 0
16+
-tests/input/ControlStructures.php 18 0
17+
+tests/input/ControlStructures.php 28 0
1818
tests/input/doc-comment-spacing.php 10 0
1919
tests/input/duplicate-assignment-variable.php 1 0
2020
tests/input/EarlyReturn.php 6 0
@@ -53,11 +53,11 @@ index 1e809f9..490fcbd 100644
5353
tests/input/useless-semicolon.php 2 0
5454
tests/input/UselessConditions.php 20 0
5555
----------------------------------------------------------------------
56-
-A TOTAL OF 309 ERRORS AND 0 WARNINGS WERE FOUND IN 37 FILES
57-
+A TOTAL OF 383 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
56+
-A TOTAL OF 310 ERRORS AND 0 WARNINGS WERE FOUND IN 37 FILES
57+
+A TOTAL OF 384 ERRORS AND 0 WARNINGS WERE FOUND IN 41 FILES
5858
----------------------------------------------------------------------
59-
-PHPCBF CAN FIX 248 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
60-
+PHPCBF CAN FIX 318 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
59+
-PHPCBF CAN FIX 249 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
60+
+PHPCBF CAN FIX 319 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
6161
----------------------------------------------------------------------
6262

6363

0 commit comments

Comments
 (0)