Skip to content

Commit ce58a59

Browse files
authored
Update DocBlockTagTypesSniff.php
Updated whitelisted tags to be consistent with PHPUnit 9: https://phpunit.readthedocs.io/en/9.5/annotations.html Removed the `@expectedException*` tags, since they were deprecated in PHPUnit 8 and removed in PHPUnit 9.
1 parent 52f9b6e commit ce58a59

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

PSR2R/Sniffs/Commenting/DocBlockTagTypesSniff.php

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,36 @@ class DocBlockTagTypesSniff extends AbstractSniff {
4646
'@var',
4747
'@version',
4848
'@todo',
49-
// PHPUnit
49+
// PHPUnit 9
50+
'@after',
51+
'@afterClass',
52+
'@backupGlobals',
53+
'@backupStaticAttributes',
54+
'@before',
55+
'@beforeClass',
56+
'@codeCoverageIgnore',
57+
'@codeCoverageIgnoreStart',
58+
'@codeCoverageIgnoreEnd',
5059
'@covers',
5160
'@coversDefaultClass',
52-
'@expectedException',
53-
'@expectedExceptionCode',
54-
'@expectedExceptionMessage',
55-
'@expectedExceptionMessageRegExp',
5661
'@coversNothing',
5762
'@dataProvider',
5863
'@depends',
64+
'@doesNotPerformAssertions',
5965
'@group',
66+
'@large',
67+
'@medium',
68+
'@preserveGlobalState',
69+
'@requires',
70+
'@runTestsInSeparateProcesses',
71+
'@runInSeparateProcess',
72+
'@small',
73+
'@test',
74+
'@testdox',
75+
'@testWith',
76+
'@ticket',
6077
'@uses',
61-
'@codeCoverageIgnore',
62-
'@codeCoverageIgnoreStart',
63-
'@codeCoverageIgnoreEnd',
78+
'@coversNothing',
6479
// PHPMD
6580
'@SuppressWarnings(PHPMD)',
6681
// PhpStorm

0 commit comments

Comments
 (0)