Skip to content

Commit

Permalink
Add test coverage for optional docblock. Should fail
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan1055 committed Nov 10, 2023
1 parent ba6e623 commit ea46008
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/Drupal/Commenting/FunctionCommentUnitTest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -947,4 +947,14 @@ class Test3 {
return [];
}

}

/**
* Test that docblock is optoinal for __construct methods.
*/
class Test43 {

public function __construct() {
}

}
10 changes: 10 additions & 0 deletions tests/Drupal/Commenting/FunctionCommentUnitTest.inc.fixed
Original file line number Diff line number Diff line change
Expand Up @@ -974,3 +974,13 @@ class Test3 {
}

}

/**
* Test that docblock is optoinal for __construct methods.
*/
class Test43 {

public function __construct() {
}

}

0 comments on commit ea46008

Please sign in to comment.