We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db12f0 commit 8e02469Copy full SHA for 8e02469
Test/HttpClientTestCase.php
@@ -505,6 +505,21 @@ public function testCancel()
505
$response->getHeaders();
506
}
507
508
+ public function testCancelInStream()
509
+ {
510
+ $client = $this->getHttpClient(__FUNCTION__);
511
+ $response = $client->request('GET', 'http://localhost:8057/404');
512
+
513
+ foreach ($client->stream($response) as $chunk) {
514
+ $response->cancel();
515
+ }
516
517
+ $this->expectException(TransportExceptionInterface::class);
518
519
520
521
522
523
public function testOnProgressCancel()
524
{
525
$client = $this->getHttpClient(__FUNCTION__);
0 commit comments