File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
src/Standards/Generic/Tests/Metrics Expand file tree Collapse file tree 2 files changed +21
-7
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -26,11 +26,18 @@ final class NestingLevelUnitTest extends AbstractSniffUnitTest
2626 * The key of the array should represent the line number and the value
2727 * should represent the number of errors that should occur on that line.
2828 *
29+ * @param string $testFile The name of the test file to process.
30+ *
2931 * @return array<int, int>
3032 */
31- public function getErrorList ()
33+ public function getErrorList ($ testFile = '' )
3234 {
33- return [73 => 1 ];
35+ switch ($ testFile ) {
36+ case 'NestingLevelUnitTest.1.inc ' :
37+ return [73 => 1 ];
38+ default :
39+ return [];
40+ }
3441
3542 }//end getErrorList()
3643
@@ -41,14 +48,21 @@ public function getErrorList()
4148 * The key of the array should represent the line number and the value
4249 * should represent the number of warnings that should occur on that line.
4350 *
51+ * @param string $testFile The name of the test file to process.
52+ *
4453 * @return array<int, int>
4554 */
46- public function getWarningList ()
55+ public function getWarningList ($ testFile = '' )
4756 {
48- return [
49- 27 => 1 ,
50- 46 => 1 ,
51- ];
57+ switch ($ testFile ) {
58+ case 'NestingLevelUnitTest.1.inc ' :
59+ return [
60+ 27 => 1 ,
61+ 46 => 1 ,
62+ ];
63+ default :
64+ return [];
65+ }
5266
5367 }//end getWarningList()
5468
You can’t perform that action at this time.
0 commit comments