Skip to content

Commit d89cbc6

Browse files
committed
Replace group annotation by attributes
1 parent cc05f42 commit d89cbc6

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/CacheWarmer/ValidatorCacheWarmerTest.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\CacheWarmer;
1313

14+
use PHPUnit\Framework\Attributes\Group;
15+
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
1416
use Symfony\Bundle\FrameworkBundle\CacheWarmer\ValidatorCacheWarmer;
1517
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
1618
use Symfony\Component\Cache\Adapter\NullAdapter;
@@ -55,9 +57,8 @@ public function testYamlWarmUp()
5557
$this->assertTrue($arrayPool->getItem('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Author')->isHit());
5658
}
5759

58-
/**
59-
* @group legacy
60-
*/
60+
#[IgnoreDeprecations]
61+
#[Group('legacy')]
6162
public function testXmlWarmUp()
6263
{
6364
$validatorBuilder = new ValidatorBuilder();
@@ -97,9 +98,8 @@ public function testYamlWarmUpAbsoluteFilePath()
9798
$this->assertTrue($arrayPool->getItem('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Author')->isHit());
9899
}
99100

100-
/**
101-
* @group legacy
102-
*/
101+
#[IgnoreDeprecations]
102+
#[Group('legacy')]
103103
public function testXmlWarmUpAbsoluteFilePath()
104104
{
105105
$validatorBuilder = new ValidatorBuilder();
@@ -139,9 +139,8 @@ public function testYamlWarmUpWithoutBuilDir()
139139
$this->assertFalse($arrayPool->getItem('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Author')->isHit());
140140
}
141141

142-
/**
143-
* @group legacy
144-
*/
142+
#[IgnoreDeprecations]
143+
#[Group('legacy')]
145144
public function testXmlWarmUpWithoutBuilDir()
146145
{
147146
$validatorBuilder = new ValidatorBuilder();

src/Symfony/Component/Validator/Tests/Mapping/Loader/XmlFileLoaderTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@
3939
use Symfony\Component\Validator\Tests\Mapping\Loader\Fixtures\ConstraintWithNamedArguments;
4040
use Symfony\Component\Validator\Tests\Mapping\Loader\Fixtures\ConstraintWithoutValueWithNamedArguments;
4141

42-
/**
43-
* @group legacy
44-
*/
42+
#[IgnoreDeprecations]
43+
#[Group('legacy')]
4544
class XmlFileLoaderTest extends TestCase
4645
{
4746
public function testLoadClassMetadataReturnsTrueIfSuccessful()

0 commit comments

Comments
 (0)