-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add one more test to safeguard against potential regressions
This test safeguards against potential regressions for the non-problematic bug fix.
- Loading branch information
1 parent
90348ee
commit 1533fe5
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.5.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//end closingBraceAtEndOfFileMissingComment() | ||
|
||
<?php | ||
|
||
// This should be the only test in this file. | ||
// Testing that the sniff is triggered and the fixer works when the closing bracket is | ||
// the last character in the file (no newline after it) and the content of the first token | ||
// is a "//end closingBraceAtEndOfFileMissingComment()" comment. | ||
|
||
function closingBraceAtEndOfFileMissingComment() { | ||
} |
11 changes: 11 additions & 0 deletions
11
src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.5.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//end closingBraceAtEndOfFileMissingComment() | ||
|
||
<?php | ||
|
||
// This should be the only test in this file. | ||
// Testing that the sniff is triggered and the fixer works when the closing bracket is | ||
// the last character in the file (no newline after it) and the content of the first token | ||
// is a "//end closingBraceAtEndOfFileMissingComment()" comment. | ||
|
||
function closingBraceAtEndOfFileMissingComment() { | ||
}//end closingBraceAtEndOfFileMissingComment() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters