File tree Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Expand file tree Collapse file tree 4 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \VarExporter \Tests ;
1313
14+ use PHPUnit \Framework \Attributes \Group ;
15+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
1416use PHPUnit \Framework \TestCase ;
1517use Symfony \Component \Serializer \Mapping \Factory \ClassMetadataFactory ;
1618use Symfony \Component \Serializer \Mapping \Loader \AttributeLoader ;
2931use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \HookedWithDefaultValue ;
3032use Symfony \Component \VarExporter \Tests \Fixtures \SimpleObject ;
3133
32- /**
33- * @group legacy
34- */
34+ #[IgnoreDeprecations]
35+ #[Group('legacy ' )]
3536class LegacyLazyGhostTraitTest extends TestCase
3637{
3738 public function testGetPublic ()
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \VarExporter \Tests ;
1313
14+ use PHPUnit \Framework \Attributes \Group ;
15+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
16+ use PHPUnit \Framework \Attributes \RequiresPhp ;
1417use Symfony \Component \VarExporter \LazyProxyTrait ;
1518use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \FinalPublicClass ;
1619use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \TestClass ;
1720use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \TestOverwritePropClass ;
1821
19- /**
20- * @requires PHP < 8.4
21- *
22- * @group legacy
23- */
22+ #[IgnoreDeprecations]
23+ #[Group('legacy ' )]
24+ #[RequiresPhp('<8.4 ' )]
2425class LegacyLazyProxyTraitTest extends LazyProxyTraitTest
2526{
2627 public function testLazyDecoratorClass ()
Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Component \VarExporter \Tests ;
1313
14+ use PHPUnit \Framework \Attributes \Group ;
15+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
16+ use PHPUnit \Framework \Attributes \RequiresPhp ;
1417use Symfony \Component \VarExporter \Exception \LogicException ;
1518use Symfony \Component \VarExporter \ProxyHelper ;
1619use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \Php82NullStandaloneReturnType ;
1720use Symfony \Component \VarExporter \Tests \Fixtures \LazyProxy \StringMagicGetClass ;
1821
19- /**
20- * @requires PHP < 8.4
21- *
22- * @group legacy
23- */
22+ #[IgnoreDeprecations]
23+ #[Group('legacy ' )]
24+ #[RequiresPhp('<8.4 ' )]
2425class LegacyProxyHelperTest extends ProxyHelperTest
2526{
2627 public function testGenerateLazyProxy ()
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22
33<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4- xsi : noNamespaceSchemaLocation =" http ://schema.phpunit.de/9 .3/phpunit.xsd"
4+ xsi : noNamespaceSchemaLocation =" https ://schema.phpunit.de/11 .3/phpunit.xsd"
55 backupGlobals =" false"
66 colors =" true"
77 bootstrap =" vendor/autoload.php"
8+ failOnDeprecation =" true"
89 failOnRisky =" true"
910 failOnWarning =" true"
1011>
1819 </testsuite >
1920 </testsuites >
2021
21- <coverage >
22+ <source ignoreSuppressionOfDeprecations = " true " >
2223 <include >
2324 <directory >./</directory >
2425 </include >
2728 <directory >./Tests</directory >
2829 <directory >./vendor</directory >
2930 </exclude >
30- </coverage >
31+ </source >
32+
33+ <extensions >
34+ <bootstrap class =" Symfony\Bridge\PhpUnit\SymfonyExtension" />
35+ </extensions >
3136</phpunit >
You can’t perform that action at this time.
0 commit comments