Skip to content

Commit 77e171e

Browse files
committed
Squiz/Heredoc: rename the test case file
... to allow for moving the git conflict/parse error test to a secondary test case file.
1 parent 5a2a376 commit 77e171e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php

+13-5
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,22 @@ class HeredocUnitTest 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 [
34-
2 => 1,
35-
8 => 1,
36-
];
35+
switch ($testFile) {
36+
case 'HeredocUnitTest.1.inc':
37+
return [
38+
2 => 1,
39+
8 => 1,
40+
];
41+
42+
default:
43+
return [];
44+
}//end switch
3745

3846
}//end getErrorList()
3947

0 commit comments

Comments
 (0)