You are here

public function Drupal_Sniffs_Commenting_FileCommentUnitTest::getErrorList in Coder 7.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/Test/Commenting/FileCommentUnitTest.php, line 14

Class

Drupal_Sniffs_Commenting_FileCommentUnitTest

Code

public function getErrorList($testFile) {
  switch ($testFile) {
    case 'FileCommentUnitTest.inc':
      return array(
        1 => 1,
      );
    case 'FileCommentUnitTest.1.inc':
      return array(
        2 => 1,
      );
  }
}