Skip to content

Commit f41a52e

Browse files
committed
run tests using PHPUnit 11.5
1 parent 314b99c commit f41a52e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Tests/CacheWarmer/LazyGhostCacheWarmerTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111

1212
namespace Symfony\Component\JsonStreamer\Tests\CacheWarmer;
1313

14+
use PHPUnit\Framework\Attributes\Group;
15+
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
1416
use PHPUnit\Framework\TestCase;
1517
use Symfony\Component\JsonStreamer\CacheWarmer\LazyGhostCacheWarmer;
1618
use Symfony\Component\JsonStreamer\Tests\Fixtures\Model\ClassicDummy;
1719

18-
/**
19-
* @group legacy
20-
*/
20+
#[IgnoreDeprecations]
21+
#[Group('legacy')]
2122
class LazyGhostCacheWarmerTest extends TestCase
2223
{
2324
private string $lazyGhostsDir;

phpunit.xml.dist

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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
>
@@ -18,13 +19,17 @@
1819
</testsuite>
1920
</testsuites>
2021

21-
<coverage>
22+
<source ignoreSuppressionOfDeprecations="true">
2223
<include>
2324
<directory>./</directory>
2425
</include>
2526
<exclude>
2627
<directory>./Tests</directory>
2728
<directory>./vendor</directory>
2829
</exclude>
29-
</coverage>
30+
</source>
31+
32+
<extensions>
33+
<bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension" />
34+
</extensions>
3035
</phpunit>

0 commit comments

Comments
 (0)