diff --git a/HttpClient/Test/HttpClientTestCase.php b/HttpClient/Test/HttpClientTestCase.php index 9a528f6..3a1ad13 100644 --- a/HttpClient/Test/HttpClientTestCase.php +++ b/HttpClient/Test/HttpClientTestCase.php @@ -12,6 +12,7 @@ namespace Symfony\Contracts\HttpClient\Test; use PHPUnit\Framework\Attributes\RequiresPhpExtension; +use PHPUnit\Framework\Attributes\TestWithJson; use PHPUnit\Framework\TestCase; use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface; use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface; @@ -346,6 +347,8 @@ public function test304() * @testWith [[]] * [["Content-Length: 7"]] */ + #[TestWithJson('[[]]')] + #[TestWithJson('[["Content-Length: 7"]]')] public function testRedirects(array $headers = []) { $client = $this->getHttpClient(__FUNCTION__); diff --git a/Service/Test/ServiceLocatorTest.php b/Service/Test/ServiceLocatorTest.php index 07d12b4..015ca71 100644 --- a/Service/Test/ServiceLocatorTest.php +++ b/Service/Test/ServiceLocatorTest.php @@ -11,13 +11,9 @@ namespace Symfony\Contracts\Service\Test; -class_alias(ServiceLocatorTestCase::class, ServiceLocatorTest::class); - -if (false) { - /** - * @deprecated since PHPUnit 9.6 - */ - class ServiceLocatorTest - { - } +/** + * @deprecated since PHPUnit 9.6 + */ +class ServiceLocatorTest extends ServiceLocatorTestCase +{ } diff --git a/Tests/Service/ServiceSubscriberTraitTest.php b/Tests/Service/ServiceSubscriberTraitTest.php index bf0db2c..b506e6e 100644 --- a/Tests/Service/ServiceSubscriberTraitTest.php +++ b/Tests/Service/ServiceSubscriberTraitTest.php @@ -11,6 +11,8 @@ namespace Symfony\Contracts\Tests\Service; +use PHPUnit\Framework\Attributes\Group; +use PHPUnit\Framework\Attributes\IgnoreDeprecations; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; use Symfony\Contracts\Service\Attribute\Required; @@ -19,9 +21,8 @@ use Symfony\Contracts\Service\ServiceSubscriberInterface; use Symfony\Contracts\Service\ServiceSubscriberTrait; -/** - * @group legacy - */ +#[IgnoreDeprecations] +#[Group('legacy')] class ServiceSubscriberTraitTest extends TestCase { public static function setUpBeforeClass(): void diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 947db86..8a2d548 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ @@ -20,7 +21,7 @@ - + ./ @@ -30,6 +31,9 @@ ./Translation/Test/ ./vendor - + + + + pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy