public function ExpectedExceptionSniff::register in Coder 8.3
Same name and namespace in other branches
- 8.2 coder_sniffer/DrupalPractice/Sniffs/Commenting/ExpectedExceptionSniff.php \DrupalPractice\Sniffs\Commenting\ExpectedExceptionSniff::register()
- 8.3.x coder_sniffer/DrupalPractice/Sniffs/Commenting/ExpectedExceptionSniff.php \DrupalPractice\Sniffs\Commenting\ExpectedExceptionSniff::register()
Returns an array of tokens this test wants to listen for.
Return value
array<int|string>
File
- coder_sniffer/
DrupalPractice/ Sniffs/ Commenting/ ExpectedExceptionSniff.php, line 33
Class
- ExpectedExceptionSniff
- Checks that the PHPunit @expectedExcpetion tags are not used.
Namespace
DrupalPractice\Sniffs\CommentingCode
public function register() {
return [
T_DOC_COMMENT_TAG,
];
}