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 0b6d9b6 commit 09a242aCopy full SHA for 09a242a
Test/HttpClientTestCase.php
@@ -782,6 +782,20 @@ public function testDestruct()
782
$this->assertLessThan(4, $duration);
783
}
784
785
+ public function testGetContentAfterDestruct()
786
+ {
787
+ $client = $this->getHttpClient(__FUNCTION__);
788
+
789
+ $start = microtime(true);
790
791
+ try {
792
+ $client->request('GET', 'http://localhost:8057/404');
793
+ $this->fail(ClientExceptionInterface::class.' expected');
794
+ } catch (ClientExceptionInterface $e) {
795
+ $this->assertSame('GET', $e->getResponse()->toArray(false)['REQUEST_METHOD']);
796
+ }
797
798
799
public function testProxy()
800
{
801
$client = $this->getHttpClient(__FUNCTION__);
0 commit comments