use Symfony\Contracts\HttpClient\Test\TestHttpServer;
class HttpClientDataCollectorTest extends TestCase
{ public static function setUpBeforeClass(): void
{ TestHttpServer::
start();
} public function testItCollectsRequestCount() { $httpClient1 =
$this->
httpClientThatHasTracedRequests([ [ 'method' => 'GET',
'url' => 'http://localhost:8057/',
],
[ 'method' => 'GET',
'url' => 'http://localhost:8057/301',
],
]);
$httpClient2 =
$this->
httpClientThatHasTracedRequests([ [