abstract protected function CoderSniffUnitTest::getErrorList in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/Drupal/Test/CoderSniffUnitTest.php \Drupal\Test\CoderSniffUnitTest::getErrorList()
- 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.
Parameters
string $testFile The name of the file being tested.:
Return value
array<int, int>
1 call to CoderSniffUnitTest::getErrorList()
- CoderSniffUnitTest::generateFailureMessages in tests/
Drupal/ CoderSniffUnitTest.php - Generate a list of test failures for a given sniffed file.
85 methods override CoderSniffUnitTest::getErrorList()
- AccessHookMenuUnitTest::getErrorList in tests/
DrupalPractice/ FunctionDefinitions/ AccessHookMenuUnitTest.php - Returns the lines where errors should occur.
- ArrayUnitTest::getErrorList in tests/
Drupal/ Arrays/ ArrayUnitTest.php - Returns the lines where errors should occur.
- AuthorTagUnitTest::getErrorList in tests/
DrupalPractice/ Commenting/ AuthorTagUnitTest.php - Returns the lines where errors should occur.
- AutoAddedKeysUnitTest::getErrorList in tests/
Drupal/ InfoFiles/ AutoAddedKeysUnitTest.php - Returns the lines where errors should occur.
- BadUnitTest::getErrorList in tests/
Drupal/ bad/ BadUnitTest.php - Returns the lines where errors should occur.
File
- tests/
Drupal/ CoderSniffUnitTest.php, line 451
Class
Namespace
Drupal\TestCode
protected abstract function getErrorList(string $testFile) : array;