You are here

public function BadUnitTest::getWarningList in Coder 8.2

Returns the lines where warnings should occur.

The key of the array should represent the line number and the value should represent the number of warnings that should occur on that line.

Return value

array(int => int)

Overrides CoderSniffUnitTest::getWarningList

File

coder_sniffer/Drupal/Test/bad/BadUnitTest.php, line 390

Class

BadUnitTest
Unit test class for all bad files.

Namespace

Drupal\bad

Code

public function getWarningList($testFile = NULL) {
  switch ($testFile) {
    case 'bad.module':
      return array(
        7 => 1,
      );
    case 'bad.php':
      return array(
        14 => 1,
        139 => 1,
        151 => 1,
        156 => 1,
        193 => 1,
        202 => 1,
        360 => 1,
        363 => 1,
        366 => 1,
        382 => 1,
        433 => 1,
        434 => 1,
        436 => 1,
        440 => 1,
        460 => 1,
        467 => 1,
        474 => 1,
        485 => 1,
        495 => 1,
        787 => 1,
        788 => 1,
        809 => 1,
        823 => 1,
        824 => 1,
      );
  }

  //end switch
  return array();
}