public function EndFileNewlineUnitTest::getErrorList in Coder 8.2
Returns the lines where errors should occur.
The key of the array should represent the line number and the value should represent the number of errors that should occur on that line.
Return value
array(int => int)
Overrides CoderSniffUnitTest::getErrorList
File
- coder_sniffer/
Drupal/ Test/ Files/ EndFileNewlineUnitTest.php, line 19
Class
Namespace
Drupal\Sniffs\FilesCode
public function getErrorList($testFile = NULL) {
// All the good files have no error.
if (strpos($testFile, 'good') !== false) {
return array();
}
else {
// All other files have one error on line one (they have all just one
// code line in them).
return array(
1 => 1,
);
}
}