diff --git a/moodle/Tests/Sniffs/Commenting/MissingDocblockSniffTest.php b/moodle/Tests/Sniffs/Commenting/MissingDocblockSniffTest.php index 9d95312..f545276 100644 --- a/moodle/Tests/Sniffs/Commenting/MissingDocblockSniffTest.php +++ b/moodle/Tests/Sniffs/Commenting/MissingDocblockSniffTest.php @@ -129,6 +129,12 @@ public static function docblockCorrectnessProvider(): array { 'errors' => [], 'warnings' => [], ], + 'Docblock with attributes on function (correct)' => [ + 'fixture' => 'docblock_with_multiline_attributes', + 'fixtureFilename' => null, + 'errors' => [], + 'warnings' => [], + ], 'Testcase' => [ 'fixture' => 'testcase_class', 'fixtureFilename' => '/lib/tests/example_test.php', diff --git a/moodle/Tests/Sniffs/Commenting/fixtures/MissingDocblock/docblock_with_multiline_attributes.php b/moodle/Tests/Sniffs/Commenting/fixtures/MissingDocblock/docblock_with_multiline_attributes.php new file mode 100644 index 0000000..4d248e9 --- /dev/null +++ b/moodle/Tests/Sniffs/Commenting/fixtures/MissingDocblock/docblock_with_multiline_attributes.php @@ -0,0 +1,50 @@ +