You are here

function CoderCommentTest::testHookImplementationComment in Coder 6.2

File

tests/coder_comment.test, line 40

Class

CoderCommentTest

Code

function testHookImplementationComment() {
  $this
    ->assertCoderPass($this->comment_header . "/**\n * Implementation of hook_foo().\n */");
  $this
    ->assertCoderFail($this->comment_header . "/**\n * Implementation of hook_foo()\n */");
  $this
    ->assertCoderFail($this->comment_header . "/**\n * Implementation of hook_foo\n */");
  $this
    ->assertCoderFail($this->comment_header . "/**\n * Implementation of hook_foo.\n */");
  $this
    ->assertCoderFail($this->comment_header . "/**\n * implementation of hook_foo().\n */");
  $this
    ->assertCoderFail($this->comment_header . '// Implementation of hook_foo().');
  $this
    ->assertCoderFail($this->comment_header . "/* Implementation of hook_foo().\n */");
  $this
    ->assertCoderFail($this->comment_header . "/**\n * Implemetation of hook_foo().\n */");
}