Skip to content

Commit 7ee8321

Browse files
committed
Generic/TraitNameSuffix: rename test case file
Doing this to be able to create tests with syntax errors on separate files.
1 parent 937b55a commit 7ee8321

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,21 @@ final class TraitNameSuffixUnitTest 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 to process.
29+
*
2830
* @return array<int, int>
2931
*/
30-
public function getErrorList()
32+
public function getErrorList($testFile='')
3133
{
32-
return [
33-
3 => 1,
34-
];
34+
switch ($testFile) {
35+
case 'TraitNameSuffixUnitTest.1.inc':
36+
return [
37+
3 => 1,
38+
];
39+
40+
default:
41+
return [];
42+
}
3543

3644
}//end getErrorList()
3745

0 commit comments

Comments
 (0)