Skip to content

Commit 62db76a

Browse files
committed
fixing legacy tests
1 parent 843e73c commit 62db76a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Symfony/Component/HttpClient/Tests/LegacyCachingHttpClientTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@
1818
use Symfony\Component\HttpKernel\HttpCache\Store;
1919
use Symfony\Contracts\HttpClient\ResponseInterface;
2020

21+
/**
22+
* @group legacy
23+
*/
2124
class LegacyCachingHttpClientTest extends TestCase
2225
{
26+
/**
27+
* @expectedDeprecation Since symfony/http-client 7.3: Passing a "Symfony\Component\HttpKernel\HttpCache\StoreInterface" as constructor's 2nd argument of "Symfony\Component\HttpClient\CachingHttpClient" is deprecated, "Symfony\Component\Cache\Adapter\TagAwareAdapterInterface" expected.
28+
*/
2329
public function testRequestHeaders()
2430
{
2531
$options = [
@@ -41,6 +47,9 @@ public function testRequestHeaders()
4147
self::assertSame($response->getRequestOptions()['normalized_headers']['test-name-header'][0], 'Test-Name-Header: test12345');
4248
}
4349

50+
/**
51+
* @expectedDeprecation Since symfony/http-client 7.3: Passing a "Symfony\Component\HttpKernel\HttpCache\StoreInterface" as constructor's 2nd argument of "Symfony\Component\HttpClient\CachingHttpClient" is deprecated, "Symfony\Component\Cache\Adapter\TagAwareAdapterInterface" expected.
52+
*/
4453
public function testDoesNotEvaluateResponseBody()
4554
{
4655
$body = file_get_contents(__DIR__.'/Fixtures/assertion_failure.php');
@@ -51,6 +60,9 @@ public function testDoesNotEvaluateResponseBody()
5160
$this->assertArrayNotHasKey('x-body-eval', $headers);
5261
}
5362

63+
/**
64+
* @expectedDeprecation Since symfony/http-client 7.3: Passing a "Symfony\Component\HttpKernel\HttpCache\StoreInterface" as constructor's 2nd argument of "Symfony\Component\HttpClient\CachingHttpClient" is deprecated, "Symfony\Component\Cache\Adapter\TagAwareAdapterInterface" expected.
65+
*/
5466
public function testDoesNotIncludeFile()
5567
{
5668
$file = __DIR__.'/Fixtures/assertion_failure.php';
@@ -68,6 +80,9 @@ public function testDoesNotIncludeFile()
6880
$this->assertArrayNotHasKey('x-body-file', $headers);
6981
}
7082

83+
/**
84+
* @expectedDeprecation Since symfony/http-client 7.3: Passing a "Symfony\Component\HttpKernel\HttpCache\StoreInterface" as constructor's 2nd argument of "Symfony\Component\HttpClient\CachingHttpClient" is deprecated, "Symfony\Component\Cache\Adapter\TagAwareAdapterInterface" expected.
85+
*/
7186
public function testDoesNotReadFile()
7287
{
7388
$file = __DIR__.'/Fixtures/assertion_failure.php';
@@ -83,6 +98,9 @@ public function testDoesNotReadFile()
8398
$this->assertArrayNotHasKey('x-body-file', $headers);
8499
}
85100

101+
/**
102+
* @expectedDeprecation Since symfony/http-client 7.3: Passing a "Symfony\Component\HttpKernel\HttpCache\StoreInterface" as constructor's 2nd argument of "Symfony\Component\HttpClient\CachingHttpClient" is deprecated, "Symfony\Component\Cache\Adapter\TagAwareAdapterInterface" expected.
103+
*/
86104
public function testRemovesXContentDigest()
87105
{
88106
$response = $this->runRequest(new MockResponse(

0 commit comments

Comments
 (0)