|
@@ 18-27 (lines=10) @@
|
| 15 |
|
|
| 16 |
|
class DiscoveredClientsTest extends WebTestCase |
| 17 |
|
{ |
| 18 |
|
public function testDiscoveredClient() |
| 19 |
|
{ |
| 20 |
|
$container = $this->getContainer(false); |
| 21 |
|
|
| 22 |
|
$this->assertTrue($container->has('httplug.auto_discovery.auto_discovered_client')); |
| 23 |
|
|
| 24 |
|
$service = $container->get('httplug.auto_discovery.auto_discovered_client'); |
| 25 |
|
|
| 26 |
|
$this->assertInstanceOf(HttpClient::class, $service); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function testDiscoveredAsyncClient() |
| 30 |
|
{ |
|
@@ 29-38 (lines=10) @@
|
| 26 |
|
$this->assertInstanceOf(HttpClient::class, $service); |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
public function testDiscoveredAsyncClient() |
| 30 |
|
{ |
| 31 |
|
$container = $this->getContainer(false); |
| 32 |
|
|
| 33 |
|
$this->assertTrue($container->has('httplug.auto_discovery.auto_discovered_async')); |
| 34 |
|
|
| 35 |
|
$service = $container->get('httplug.auto_discovery.auto_discovered_async'); |
| 36 |
|
|
| 37 |
|
$this->assertInstanceOf(HttpAsyncClient::class, $service); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function testDiscoveredClientWithProfilingEnabled() |
| 41 |
|
{ |