Skip to content

Commit 4dbb27d

Browse files
committed
Generic/ByteOrderMark: rename test case file
To add more tests that need to go into separate files.
1 parent ff2765d commit 4dbb27d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,19 @@ final class ByteOrderMarkUnitTest extends AbstractSniffUnitTest
2626
* The key of the array should represent the line number and the value
2727
* should represent the number of errors that should occur on that line.
2828
*
29+
* @param string $testFile The name of the file being tested.
30+
*
2931
* @return array<int, int>
3032
*/
31-
public function getErrorList()
33+
public function getErrorList($testFile='')
3234
{
33-
return [1 => 1];
35+
switch ($testFile) {
36+
case 'ByteOrderMarkUnitTest.1.inc':
37+
return [1 => 1];
38+
39+
default:
40+
return [];
41+
}
3442

3543
}//end getErrorList()
3644

0 commit comments

Comments
 (0)