Skip to content

Commit

Permalink
relaxplus: Add php_unit_fqcn_annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Jul 30, 2024
1 parent ac955b4 commit 5603bda
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RuleSet/Sets/RelaxPlus.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function mainRules(): array
return [
'explicit_string_variable' => true,
'no_superfluous_elseif' => true,
'php_unit_fqcn_annotation' => true,
'php_unit_method_casing' => true,
'string_implicit_backslashes' => true,
'general_phpdoc_annotation_remove' => [
Expand Down
7 changes: 7 additions & 0 deletions tests/Fixtures/Ruleset/relaxplus_actual.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ class MyTest extends \PhpUnit\FrameWork\TestCase
* php_unit_method_casing
*/
public function test_my_code() {}

/**
* @covers Project\NameSpace\Something
* @coversDefaultClass Project\Default
* @uses Project\Test\Util
*/
public function testPhpUnitFqcnAnnotation() {}
}

/**
Expand Down
9 changes: 9 additions & 0 deletions tests/Fixtures/Ruleset/relaxplus_expected.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ class MyTest extends \PhpUnit\FrameWork\TestCase
* php_unit_method_casing
*/
public function testMyCode() {}

/**
* @covers \Project\NameSpace\Something
*
* @coversDefaultClass \Project\Default
*
* @uses \Project\Test\Util
*/
public function testPhpUnitFqcnAnnotation() {}
}

class NoUselessDoctrineRepositoryCommentFixer {}

0 comments on commit 5603bda

Please sign in to comment.