function CoderReviewCommentTest::testHookImplementationComment in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_comment.test \CoderReviewCommentTest::testHookImplementationComment()
???
File
- coder_review/
tests/ coder_review_comment.test, line 66
Class
- CoderReviewCommentTest
- Tests the functionality of comment review rules in Coder_review module.
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 */");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * Implements of hook_foo().\n */");
}