function CoderReviewCommentTest::testSeeDoxygenComment in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_comment.test \CoderReviewCommentTest::testSeeDoxygenComment()
???
File
- coder_review/
tests/ coder_review_comment.test, line 90
Class
- CoderReviewCommentTest
- Tests the functionality of comment review rules in Coder_review module.
Code
function testSeeDoxygenComment() {
$this
->assertCoderReviewPass($this->comment_header . "/**\n * @see some_function()");
$this
->assertCoderReviewPass($this->comment_header . "/**\n * @see some_function(), foo.tpl.php");
$this
->assertCoderReviewPass($this->comment_header . "/**\n * @see some_function(), foo.tpl.php, bar.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * foo bar @see some_function()");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function, foo.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function(),foo.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function() foo.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function(), foo.tpl.php bar.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function(),");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function().");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see some_function(), foo.tpl.php.");
$this
->assertCoderReviewFail($this->comment_header . "/**\n * @see\n * some_function()");
$this
->assertCoderReviewPass($this->comment_header . "// @see some_function()");
$this
->assertCoderReviewPass($this->comment_header . "// @see foo.tpl.php");
$this
->assertCoderReviewPass($this->comment_header . "// @see some_function(), foo.tpl.php");
$this
->assertCoderReviewFail($this->comment_header . "// @see some_function");
}