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