You are here

abstract protected function CoderSniffUnitTest::getErrorList in Coder 8.2

Same name and namespace in other branches
  1. 8.3 tests/Drupal/CoderSniffUnitTest.php \Drupal\Test\CoderSniffUnitTest::getErrorList()
  2. 8.3.x tests/Drupal/CoderSniffUnitTest.php \Drupal\Test\CoderSniffUnitTest::getErrorList()

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>

1 call to CoderSniffUnitTest::getErrorList()
CoderSniffUnitTest::generateFailureMessages in coder_sniffer/Drupal/Test/CoderSniffUnitTest.php
Generate a list of test failures for a given sniffed file.
71 methods override CoderSniffUnitTest::getErrorList()
AccessHookMenuUnitTest::getErrorList in coder_sniffer/DrupalPractice/Test/FunctionDefinitions/AccessHookMenuUnitTest.php
Returns the lines where errors should occur.
ArrayUnitTest::getErrorList in coder_sniffer/Drupal/Test/Arrays/ArrayUnitTest.php
Returns the lines where errors should occur.
AuthorTagUnitTest::getErrorList in coder_sniffer/DrupalPractice/Test/Commenting/AuthorTagUnitTest.php
Returns the lines where errors should occur.
AutoAddedKeysUnitTest::getErrorList in coder_sniffer/Drupal/Test/InfoFiles/AutoAddedKeysUnitTest.php
Returns the lines where errors should occur.
BadUnitTest::getErrorList in coder_sniffer/Drupal/Test/bad/BadUnitTest.php
Returns the lines where errors should occur.

... See full list

File

coder_sniffer/Drupal/Test/CoderSniffUnitTest.php, line 453

Class

CoderSniffUnitTest

Namespace

Drupal\Test

Code

protected abstract function getErrorList($testFile = NULL);