Skip to content

Commit 17059e5

Browse files
committed
Migrate away from annotations in tests
1 parent 680a9ef commit 17059e5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/Tests/ORM/Functional/EagerFetchOneToManyWithCompositeKeyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
use Doctrine\Tests\Models\EagerFetchedCompositeOneToMany\RootEntity;
88
use Doctrine\Tests\Models\EagerFetchedCompositeOneToMany\SecondLevel;
99
use Doctrine\Tests\OrmFunctionalTestCase;
10+
use PHPUnit\Framework\Attributes\Group;
1011

1112
final class EagerFetchOneToManyWithCompositeKeyTest extends OrmFunctionalTestCase
1213
{
13-
/** @ticket 11154 */
14+
#[Group('GH11154')]
1415
public function testItDoesNotThrowAnExceptionWhenTriggeringALoad(): void
1516
{
1617
$this->setUpEntitySchema([RootEntity::class, SecondLevel::class]);

tests/Tests/ORM/Functional/Ticket/GH10049/GH10049Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Doctrine\Tests\ORM\Functional\Ticket\GH10049;
66

77
use Doctrine\Tests\OrmFunctionalTestCase;
8+
use PHPUnit\Framework\Attributes\DoesNotPerformAssertions;
89

910
class GH10049Test extends OrmFunctionalTestCase
1011
{
@@ -18,7 +19,7 @@ public function setUp(): void
1819
);
1920
}
2021

21-
/** @doesNotPerformAssertions */
22+
#[DoesNotPerformAssertions]
2223
public function testInheritedReadOnlyPropertyValueCanBeSet(): void
2324
{
2425
$child = new ReadOnlyPropertyInheritor(10049);

0 commit comments

Comments
 (0)