Skip to content

Commit e3dcefe

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/ForLoopWithTestFunctionCall: rename test case file
Doing this to create more test case files in subsequent commits.
1 parent 7a7cd6b commit e3dcefe

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/Standards/Generic/Tests/CodeAnalysis/ForLoopWithTestFunctionCallUnitTest.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,21 @@ public function getErrorList()
4141
* The key of the array should represent the line number and the value
4242
* should represent the number of warnings that should occur on that line.
4343
*
44+
* @param string $testFile The name of the test file being tested.
45+
*
4446
* @return array<int, int>
4547
*/
46-
public function getWarningList()
48+
public function getWarningList($testFile='')
4749
{
48-
return [
49-
4 => 1,
50-
13 => 1,
51-
];
50+
switch ($testFile) {
51+
case 'ForLoopWithTestFunctionCallUnitTest.1.inc':
52+
return [
53+
4 => 1,
54+
13 => 1,
55+
];
56+
default:
57+
return [];
58+
}
5259

5360
}//end getWarningList()
5461

0 commit comments

Comments
 (0)