You are here

function CoderReviewCommentTest::testHookImplementationComment in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_review/tests/coder_review_comment.test \CoderReviewCommentTest::testHookImplementationComment()

File

coder_review/tests/coder_review_comment.test, line 39

Class

CoderReviewCommentTest

Code

function testHookImplementationComment() {
  $this
    ->assertCoderReviewPass($this->comment_header . "/**\n * Implements hook_foo().\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . "/**\n * Implements hook_foo()\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . "/**\n * Implements hook_foo\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . "/**\n * Implements hook_foo.\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . "/**\n * implements hook_foo().\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . '// Implements hook_foo().');
  $this
    ->assertCoderReviewFail($this->comment_header . "/* Implements hook_foo().\n */");
  $this
    ->assertCoderReviewFail($this->comment_header . "/**\n * Implementation of hook_foo().\n */");
}