You are here

protected function GlobalClassUnitTest::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/DrupalPractice/Test/Objects/GlobalClassUnitTest.php, line 34

Class

GlobalClassUnitTest

Namespace

DrupalPractice\Sniffs\Objects

Code

protected function getWarningList($testFile = NULL) {
  switch ($testFile) {
    case 'GlobalClassUnitTest.inc':
      return array(
        8 => 1,
      );
    case 'ExampleService.php':
      return array(
        23 => 1,
      );
    default:
      return [];
  }
}