You are here

function test7 in Coder 8.3

Same name in this branch
  1. 8.3 tests/Drupal/Commenting/DocCommentUnitTest.inc \test7()
  2. 8.3 tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test7()
  3. 8.3 tests/Drupal/bad/bad.php \test7()
Same name and namespace in other branches
  1. 8.2 coder_sniffer/Drupal/Test/Commenting/FunctionCommentUnitTest.inc \test7()
  2. 8.2 coder_sniffer/Drupal/Test/bad/bad.php \test7()
  3. 8.2 coder_sniffer/Drupal/Test/good/good.php \test7()
  4. 7.2 coder_sniffer/Test/bad/bad.php \test7()
  5. 8.3.x tests/Drupal/Commenting/DocCommentUnitTest.inc \test7()
  6. 8.3.x tests/Drupal/Commenting/FunctionCommentUnitTest.inc \test7()
  7. 8.3.x tests/Drupal/bad/bad.php \test7()

Separate @param, @return,

Parameters

string $param: Something incredibly useful.

Return value

bool Returns FALSE.

Throws

sections by a blank line.

Exception Thrown when $param is TRUE.

Deprecated

@todo Fix coding standards.

See also

some_function()

File

tests/Drupal/Commenting/DocCommentUnitTest.inc, line 21

Code

function test7($param) {
  if ($param) {
    throw new Exception();
  }
  return FALSE;
}