Skip to content

Commit ceef93e

Browse files
committed
Generic/InterfaceNameSuffix: rename test case file
Doing this to be able to create tests with syntax errors in additional, separate test case files.
1 parent 9f6ceb7 commit ceef93e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/Standards/Generic/Tests/NamingConventions/InterfaceNameSuffixUnitTest.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@ final class InterfaceNameSuffixUnitTest extends AbstractSniffUnitTest
2525
* The key of the array should represent the line number and the value
2626
* should represent the number of errors that should occur on that line.
2727
*
28+
* @param string $testFile The name of the test file.
29+
*
2830
* @return array<int, int>
2931
*/
30-
public function getErrorList()
32+
public function getErrorList($testFile='')
3133
{
32-
return [5 => 1];
34+
switch ($testFile) {
35+
case 'InterfaceNameSuffixUnitTest.1.inc':
36+
return [5 => 1];
37+
default:
38+
return [];
39+
}
3340

3441
}//end getErrorList()
3542

0 commit comments

Comments
 (0)