Skip to content

Commit bd1b0d6

Browse files
committed
PSR12/ConstantVisibility: rename test case file
1 parent 47b2589 commit bd1b0d6

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.inc renamed to src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.1.inc

File renamed without changes.

src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.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-
4 => 1,
50-
12 => 1,
51-
21 => 1,
52-
];
50+
switch ($testFile) {
51+
case 'ConstantVisibilityUnitTest.1.inc':
52+
return [
53+
4 => 1,
54+
12 => 1,
55+
21 => 1,
56+
];
57+
58+
default:
59+
return [];
60+
}
5361

5462
}//end getWarningList()
5563

0 commit comments

Comments
 (0)