Skip to content

Commit 3aa94eb

Browse files
authored
Move inline @link tag fixtures into CoversAnnotationWithValueToAttributeRector test (#804)
1 parent 5c341c9 commit 3aa94eb

3 files changed

Lines changed: 95 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
/**
8+
* @copyright Example {@link https://example.com}. Additional description.
9+
* @todo Do this.{@link https://example.com}.
10+
* @covers \Tests\BarController
11+
*/
12+
class CoversWithInlineLinkAndDescription extends TestCase
13+
{
14+
}
15+
16+
?>
17+
-----
18+
<?php
19+
20+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
21+
22+
use PHPUnit\Framework\TestCase;
23+
24+
/**
25+
* @copyright Example {@link https://example.com}. Additional description.
26+
* @todo Do this.{@link https://example.com}.
27+
*/
28+
#[\PHPUnit\Framework\Attributes\CoversClass(\Tests\BarController::class)]
29+
class CoversWithInlineLinkAndDescription extends TestCase
30+
{
31+
}
32+
33+
?>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
/**
8+
* @copyright Some Value. Something.({@link https://example.com}).
9+
* @covers \Tests\BarController
10+
*/
11+
class CoversWithInlineLinkAndPunctuation extends TestCase
12+
{
13+
}
14+
15+
?>
16+
-----
17+
<?php
18+
19+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
20+
21+
use PHPUnit\Framework\TestCase;
22+
23+
/**
24+
* @copyright Some Value. Something.({@link https://example.com}).
25+
*/
26+
#[\PHPUnit\Framework\Attributes\CoversClass(\Tests\BarController::class)]
27+
class CoversWithInlineLinkAndPunctuation extends TestCase
28+
{
29+
}
30+
31+
?>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
/**
8+
* @copyright Example {@link https://example.com}
9+
* @covers \Tests\BarController
10+
*/
11+
class CoversWithInlineLinkTag extends TestCase
12+
{
13+
}
14+
15+
?>
16+
-----
17+
<?php
18+
19+
namespace Rector\PHPUnit\Tests\AnnotationsToAttributes\Rector\Class_\CoversAnnotationWithValueToAttributeRector\Fixture;
20+
21+
use PHPUnit\Framework\TestCase;
22+
23+
/**
24+
* @copyright Example {@link https://example.com}
25+
*/
26+
#[\PHPUnit\Framework\Attributes\CoversClass(\Tests\BarController::class)]
27+
class CoversWithInlineLinkTag extends TestCase
28+
{
29+
}
30+
31+
?>

0 commit comments

Comments
 (0)