You are here

public function ExpectedExceptionSniff::register in Coder 8.2

Same name and namespace in other branches
  1. 8.3 coder_sniffer/DrupalPractice/Sniffs/Commenting/ExpectedExceptionSniff.php \DrupalPractice\Sniffs\Commenting\ExpectedExceptionSniff::register()
  2. 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

File

coder_sniffer/DrupalPractice/Sniffs/Commenting/ExpectedExceptionSniff.php, line 33

Class

ExpectedExceptionSniff
Checks that the PHPunit @expectedExcpetion tags are not used.

Namespace

DrupalPractice\Sniffs\Commenting

Code

public function register() {
  return array(
    T_DOC_COMMENT_TAG,
  );
}