File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33namespace Quantum \Tests \Unit \HttpClient ;
44
55use Quantum \HttpClient \Exceptions \HttpClientException ;
6+ use Quantum \HttpClient \Adapters \MultiCurlAdapter ;
7+ use Quantum \HttpClient \Adapters \CurlAdapter ;
68use Quantum \HttpClient \HttpClient ;
79use Quantum \Tests \Unit \AppTestCase ;
810use Curl \CaseInsensitiveArray ;
@@ -66,9 +68,13 @@ public function testHttpClientIsMultiRequest(): void
6668
6769 $ this ->assertFalse ($ this ->httpClient ->isMultiRequest ());
6870
71+ $ this ->assertInstanceOf (CurlAdapter::class, $ this ->httpClient ->getAdapter ());
72+
6973 $ this ->httpClient ->createMultiRequest ($ multi );
7074
7175 $ this ->assertTrue ($ this ->httpClient ->isMultiRequest ());
76+
77+ $ this ->assertInstanceOf (MultiCurlAdapter::class, $ this ->httpClient ->getAdapter ());
7278 }
7379
7480 public function testHttpClientRequestNotCreated (): void
@@ -235,6 +241,8 @@ public function testHttpClientCreateAsyncMultiRequestRegistersCallbacks(): void
235241 $ this ->httpClient ->createAsyncMultiRequest ($ success , $ error , $ multi );
236242
237243 $ this ->assertTrue ($ this ->httpClient ->isMultiRequest ());
244+
245+ $ this ->assertInstanceOf (MultiCurlAdapter::class, $ this ->httpClient ->getAdapter ());
238246 }
239247
240248 public function testHttpClientInfoAndUrl (): void
You can’t perform that action at this time.
0 commit comments