Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2500ff

Browse files
committed
Swap to localhost url
1 parent 0452bf6 commit e2500ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Contracts/HttpClient/Test/HttpClientTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ public function testGzipBroken()
767767
public function testJsonRegexBuffer(): void
768768
{
769769
$client = $this->getHttpClient(__FUNCTION__);
770-
$response = $client->request('GET', 'https://jsonplaceholder.typicode.com/users', ['buffer' => '/([a-z]+\/json)/']);
770+
$response = $client->request('GET', 'http://localhost:8057', ['buffer' => '/([a-z]+\/json)/']);
771771

772772
$firstContent = $response->getContent();
773773
$secondContent = $response->getContent();
@@ -781,7 +781,7 @@ public function testJsonRegexBuffer(): void
781781
public function testFalseBuffer(): void
782782
{
783783
$client = $this->getHttpClient(__FUNCTION__);
784-
$response = $client->request('GET', 'https://jsonplaceholder.typicode.com/users', ['buffer' => false]);
784+
$response = $client->request('GET', 'http://localhost:8057', ['buffer' => false]);
785785

786786
$firstPosts = $response->getContent();
787787
$secondPosts = $response->getContent();
@@ -793,7 +793,7 @@ public function testFalseBuffer(): void
793793
public function testInvalidRegexBuffer(): void
794794
{
795795
$client = $this->getHttpClient(__FUNCTION__);
796-
$response = $client->request('GET', 'https://jsonplaceholder.typicode.com/users', ['buffer' => '/([a-z]+\/json))/']);
796+
$response = $client->request('GET', 'http://localhost:8057', ['buffer' => '/([a-z]+\/json))/']);
797797

798798
$firstPosts = $response->getContent();
799799
$secondPosts = $response->getContent();

0 commit comments

Comments
 (0)