We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a2a376 commit 77e171eCopy full SHA for 77e171e
src/Standards/Squiz/Tests/PHP/HeredocUnitTest.inc renamed to src/Standards/Squiz/Tests/PHP/HeredocUnitTest.1.inc
src/Standards/Squiz/Tests/PHP/HeredocUnitTest.php
@@ -26,14 +26,22 @@ class HeredocUnitTest extends AbstractSniffUnitTest
26
* The key of the array should represent the line number and the value
27
* should represent the number of errors that should occur on that line.
28
*
29
+ * @param string $testFile The name of the file being tested.
30
+ *
31
* @return array<int, int>
32
*/
- public function getErrorList()
33
+ public function getErrorList($testFile='')
34
{
- return [
- 2 => 1,
35
- 8 => 1,
36
- ];
+ switch ($testFile) {
+ case 'HeredocUnitTest.1.inc':
37
+ return [
38
+ 2 => 1,
39
+ 8 => 1,
40
+ ];
41
+
42
+ default:
43
+ return [];
44
+ }//end switch
45
46
}//end getErrorList()
47
0 commit comments