File tree Expand file tree Collapse file tree 4 files changed +11
-19
lines changed Expand file tree Collapse file tree 4 files changed +11
-19
lines changed Original file line number Diff line number Diff line change 1111
1212use function realpath ;
1313use PHPUnit \Framework \Attributes \CoversClass ;
14+ use PHPUnit \Framework \Attributes \Ticket ;
1415use PHPUnit \Framework \TestCase ;
1516
1617#[CoversClass(Filter::class)]
@@ -122,9 +123,7 @@ public function testNonFilesAreFiltered(): void
122123 $ this ->assertTrue ($ this ->filter ->isExcluded ('regexp code ' ));
123124 }
124125
125- /**
126- * @ticket https://github.com/sebastianbergmann/php-code-coverage/issues/664
127- */
126+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/issues/664 ' )]
128127 public function testTryingToAddFileThatDoesNotExistDoesNotChangeFilter (): void
129128 {
130129 $ this ->filter ->includeFile ('does_not_exist ' );
Original file line number Diff line number Diff line change 1212use const DIRECTORY_SEPARATOR ;
1313use function rtrim ;
1414use Generator ;
15+ use PHPUnit \Framework \Attributes \DataProvider ;
1516use ReflectionMethod ;
1617use SebastianBergmann \CodeCoverage \Data \ProcessedCodeCoverageData ;
1718use SebastianBergmann \CodeCoverage \StaticAnalysis \ParsingFileAnalyser ;
@@ -237,9 +238,7 @@ public function testBuildDirectoryStructure(): void
237238 );
238239 }
239240
240- /**
241- * @dataProvider reducePathsProvider
242- */
241+ #[DataProvider('reducePathsProvider ' )]
243242 public function testReducePaths (array $ reducedPaths , string $ commonPath , ProcessedCodeCoverageData $ paths ): void
244243 {
245244 $ method = new ReflectionMethod (
Original file line number Diff line number Diff line change 1616use PhpParser \NodeVisitor \ParentConnectingVisitor ;
1717use PhpParser \ParserFactory ;
1818use PHPUnit \Framework \Attributes \CoversClass ;
19+ use PHPUnit \Framework \Attributes \Ticket ;
1920use PHPUnit \Framework \TestCase ;
2021use SebastianBergmann \CodeCoverage \TestFixture \ClassThatUsesAnonymousClass ;
2122use SebastianBergmann \CodeCoverage \TestFixture \ClassWithNameThatIsPartOfItsNamespacesName \ClassWithNameThatIsPartOfItsNamespacesName ;
2223
2324#[CoversClass(CodeUnitFindingVisitor::class)]
2425final class CodeUnitFindingVisitorTest extends TestCase
2526{
26- /**
27- * @ticket https://github.com/sebastianbergmann/php-code-coverage/issues/786
28- */
27+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/issues/786 ' )]
2928 public function testDoesNotFindAnonymousClass (): void
3029 {
3130 $ codeUnitFindingVisitor = $ this ->findCodeUnits (__DIR__ . '/../../_files/ClassThatUsesAnonymousClass.php ' );
@@ -59,9 +58,7 @@ public function testDoesNotFindAnonymousClass(): void
5958 $ this ->assertSame (1 , $ method ['ccn ' ]);
6059 }
6160
62- /**
63- * @ticket https://github.com/sebastianbergmann/php-code-coverage/pull/797
64- */
61+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/pull/797 ' )]
6562 public function testHandlesClassWithNameThatIsPartOfItsNamespacesName (): void
6663 {
6764 $ codeUnitFindingVisitor = $ this ->findCodeUnits (__DIR__ . '/../../_files/ClassWithNameThatIsPartOfItsNamespacesName.php ' );
Original file line number Diff line number Diff line change 1010namespace SebastianBergmann \CodeCoverage \StaticAnalysis ;
1111
1212use PHPUnit \Framework \Attributes \CoversClass ;
13+ use PHPUnit \Framework \Attributes \Ticket ;
1314use PHPUnit \Framework \TestCase ;
1415
1516#[CoversClass(CodeUnitFindingVisitor::class)]
@@ -70,10 +71,8 @@ public function testGetLinesToBeIgnored3(): void
7071 );
7172 }
7273
73- /**
74- * @ticket https://github.com/sebastianbergmann/php-code-coverage/issues/793
75- * @ticket https://github.com/sebastianbergmann/php-code-coverage/issues/794
76- */
74+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/issues/793 ' )]
75+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/issues/794 ' )]
7776 public function testLineWithFullyQualifiedClassNameConstantIsNotIgnored (): void
7877 {
7978 $ this ->assertSame (
@@ -127,9 +126,7 @@ public function testGetLinesOfCodeForFileWithoutNewline(): void
127126 );
128127 }
129128
130- /**
131- * @ticket https://github.com/sebastianbergmann/php-code-coverage/issues/885
132- */
129+ #[Ticket('https://github.com/sebastianbergmann/php-code-coverage/issues/885 ' )]
133130 public function testGetLinesOfCodeForFileCrLineEndings (): void
134131 {
135132 $ result = (new ParsingFileAnalyser (false , false ))->linesOfCodeFor (
You can’t perform that action at this time.
0 commit comments