-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathFunctionCommentUnitTest.php
106 lines (93 loc) · 2.58 KB
/
FunctionCommentUnitTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
namespace Drupal\Test\Commenting;
use Drupal\Test\CoderSniffUnitTest;
class FunctionCommentUnitTest extends CoderSniffUnitTest
{
/**
* Returns the lines where errors should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
protected function getErrorList(string $testFile): array
{
switch ($testFile) {
case 'FunctionCommentUnitTest.inc':
return [
13 => 1,
15 => 1,
34 => 1,
44 => 1,
54 => 1,
63 => 1,
72 => 1,
79 => 1,
88 => 1,
93 => 1,
102 => 1,
114 => 1,
127 => 2,
148 => 1,
149 => 2,
188 => 1,
196 => 1,
206 => 1,
216 => 1,
217 => 1,
226 => 3,
234 => 1,
236 => 1,
238 => 1,
249 => 1,
251 => 1,
253 => 1,
255 => 1,
257 => 1,
299 => 1,
309 => 1,
312 => 1,
322 => 1,
325 => 1,
335 => 1,
346 => 1,
358 => 1,
361 => 1,
372 => 1,
390 => 2,
391 => 2,
402 => 1,
415 => 1,
417 => 1,
427 => 2,
428 => 2,
539 => 1,
541 => 1,
942 => 1,
987 => 1,
];
case 'FunctionCommentUnitTest.1.inc':
return [];
case 'FunctionCommentUnitTest.2.inc':
return [8 => 1];
}//end switch
return [];
}//end getErrorList()
/**
* Returns the lines where warnings should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @param string $testFile The name of the file being tested.
*
* @return array<int, int>
*/
protected function getWarningList(string $testFile): array
{
return [];
}//end getWarningList()
}//end class