Skip to content

Commit 87f6014

Browse files
committed
Additional updates to the test files
Just making sure that the test cases are clearly annotated as parse errors and that these should be ignored.
1 parent a8d7e37 commit 87f6014

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Standards/PEAR/Tests/Classes/ClassDeclarationUnitTest.2.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ if (!class_exists('ClassOpeningBraceTabIndented')) {
77
}
88

99

10-
// Needs to be last test in the file. Intentional parse error.
10+
// Needs to be last test in the file. Intentional parse error. Should be ignored.
1111
class MyParseError extends Exception

src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interface TestClass
6868

6969
class MyClass
7070
{
71-
public function myFunction();
71+
public function parseErrorMustBeIgnored();
7272
}//end class
7373

7474
// Closures don't need end comments.

src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.1.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interface TestClass
6868

6969
class MyClass
7070
{
71-
public function myFunction();
71+
public function parseErrorMustBeIgnored();
7272
}//end class
7373

7474
// Closures don't need end comments.

src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.2.inc

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

33
// Intentional parse error (missing opening bracket).
44
// This should be the only test in this file.
5-
// Testing that the sniff is triggered.
5+
// Testing that the sniff stays silent.
66

77
class MissingOpeningBracket

src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.3.inc

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

33
// Intentional parse error (missing closing bracket).
44
// This should be the only test in this file.
5-
// Testing that the sniff is triggered.
5+
// Testing that the sniff stays silent.
66

77
class MissingClosingBracket {

0 commit comments

Comments
 (0)