Skip to content

Commit

Permalink
Add newline at end of file for many tests
Browse files Browse the repository at this point in the history
Add the newline in reconstructTest() and run updateTests.php, to
reduce spurious diffs in the future.
  • Loading branch information
nikic committed May 20, 2023
1 parent 779b695 commit 9a5d5c1
Show file tree
Hide file tree
Showing 121 changed files with 121 additions and 121 deletions.
2 changes: 1 addition & 1 deletion test/PhpParser/CodeTestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function reconstructTest($name, array $tests) {
}
$result .= $lastPart;
}
return $result;
return $result . "\n";
}

private function extractMode(string $expected): array {
Expand Down
2 changes: 1 addition & 1 deletion test/code/parser/blockComments.test
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ array(
0: // empty
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/comments.test
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ array(
0: // comment
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/errorHandling/eofError.test
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ array(
0: /* bar */
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/arrayDef.test
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/arrayDestructuring.test
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/arrayEmptyElemens.test
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/arraySpread.test
Original file line number Diff line number Diff line change
Expand Up @@ -434,4 +434,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/arrow_function.test
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/assign.test
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/assignNewByRef.test
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/cast.test
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/clone.test
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/closure.test
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/closure_use_trailing_comma.test
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/comparison.test
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/concatPrecedence.test
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/constant_expr.test
Original file line number Diff line number Diff line change
Expand Up @@ -691,4 +691,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/errorSuppress.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/exit.test
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/exprInIsset.test
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ array(
0: // This is illegal, but not a syntax error.
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/exprInList.test
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ array(
0: // This is illegal, but not a syntax error.
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/args.test
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/constFetch.test
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/constantDeref.test
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/funcCall.test
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ array(
0: // array dereferencing
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/namedArgs.test
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/newDeref.test
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/objectAccess.test
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/simpleArrayAccess.test
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/fetchAndCall/staticCall.test
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@ array(
)
)
)
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ array(
0: // class name variations can be found in staticCall.test
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/firstClassCallables.test
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,4 @@ array(
stmts: array(
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/includeAndEval.test
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/issetAndEmpty.test
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/keywordsInNamespacedName.test
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/listReferences.test
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/listWithKeys.test
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/logic.test
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/match.test
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/math.test
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/new.test
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,4 @@ array(
0: // test regression introduces by new dereferencing syntax
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/newWithoutClass.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/print.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/shellExec.test
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/ternaryAndCoalesce.test
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/throw.test
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/trailingCommas.test
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/constDeref.test
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/globalNonSimpleVarError.test
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/indirectCall.test
Original file line number Diff line number Diff line change
Expand Up @@ -543,4 +543,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/isset.test
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/new.test
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/newInstanceofExpr.test
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/uvs/staticProperty.test
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ array(
)
)
)
)
)
2 changes: 1 addition & 1 deletion test/code/parser/expr/varVarPos.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ array(
)
)
)
)
)

0 comments on commit 9a5d5c1

Please sign in to comment.