File tree Expand file tree Collapse file tree 2 files changed +22
-15
lines changed
src/Standards/Generic/Tests/NamingConventions Expand file tree Collapse file tree 2 files changed +22
-15
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,24 +26,31 @@ final class ConstructorNameUnitTest extends AbstractSniffUnitTest
26
26
* The key of the array should represent the line number and the value
27
27
* should represent the number of errors that should occur on that line.
28
28
*
29
+ * @param string $testFile The name of the test file to process.
30
+ *
29
31
* @return array<int, int>
30
32
*/
31
- public function getErrorList ()
33
+ public function getErrorList ($ testFile = '' )
32
34
{
33
- return [
34
- 6 => 1 ,
35
- 11 => 1 ,
36
- 47 => 1 ,
37
- 62 => 1 ,
38
- 91 => 1 ,
39
- 103 => 1 ,
40
- 104 => 1 ,
41
- 112 => 1 ,
42
- 120 => 1 ,
43
- 121 => 1 ,
44
- 126 => 1 ,
45
- 127 => 1 ,
46
- ];
35
+ switch ($ testFile ) {
36
+ case 'ConstructorNameUnitTest.1.inc ' :
37
+ return [
38
+ 6 => 1 ,
39
+ 11 => 1 ,
40
+ 47 => 1 ,
41
+ 62 => 1 ,
42
+ 91 => 1 ,
43
+ 103 => 1 ,
44
+ 104 => 1 ,
45
+ 112 => 1 ,
46
+ 120 => 1 ,
47
+ 121 => 1 ,
48
+ 126 => 1 ,
49
+ 127 => 1 ,
50
+ ];
51
+ default :
52
+ return [];
53
+ }//end switch
47
54
48
55
}//end getErrorList()
49
56
You can’t perform that action at this time.
0 commit comments