Skip to content

Commit 2d9779d

Browse files
rodrigoprimojrfnl
authored andcommitted
Generic/JumbledIncrementer: rename test case file
Doing this to be able to create tests with syntax errors on separate files.
1 parent 2d4783c commit 2d9779d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,23 @@ 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 file being tested.
45+
*
4446
* @return array<int, int>
4547
*/
46-
public function getWarningList()
48+
public function getWarningList($testFile='')
4749
{
48-
return [
49-
3 => 2,
50-
4 => 1,
51-
20 => 1,
52-
];
50+
switch ($testFile) {
51+
case 'JumbledIncrementerUnitTest.1.inc':
52+
return [
53+
3 => 2,
54+
4 => 1,
55+
20 => 1,
56+
];
57+
58+
default:
59+
return [];
60+
}
5361

5462
}//end getWarningList()
5563

0 commit comments

Comments
 (0)