|
@@ 42-51 (lines=10) @@
|
| 39 |
|
]; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function testDiscoveryFallbacks(): void |
| 43 |
|
{ |
| 44 |
|
$this->load(); |
| 45 |
|
|
| 46 |
|
$this->assertContainerBuilderHasService('httplug.client.default', HttpClient::class); |
| 47 |
|
$this->assertContainerBuilderHasService('httplug.message_factory.default', MessageFactory::class); |
| 48 |
|
$this->assertContainerBuilderHasService('httplug.uri_factory.default', UriFactory::class); |
| 49 |
|
$this->assertContainerBuilderHasService('httplug.stream_factory.default', StreamFactory::class); |
| 50 |
|
$this->assertContainerBuilderHasService('httplug.async_client.default', HttpAsyncClient::class); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function testDiscoveryPartialFallbacks(): void |
| 54 |
|
{ |
|
@@ 53-63 (lines=11) @@
|
| 50 |
|
$this->assertContainerBuilderHasService('httplug.async_client.default', HttpAsyncClient::class); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function testDiscoveryPartialFallbacks(): void |
| 54 |
|
{ |
| 55 |
|
$this->load(); |
| 56 |
|
$this->setDefinition('httplug.client.default', new Definition(Client::class)); |
| 57 |
|
|
| 58 |
|
$this->assertContainerBuilderHasService('httplug.client.default', Client::class); |
| 59 |
|
$this->assertContainerBuilderHasService('httplug.message_factory.default', MessageFactory::class); |
| 60 |
|
$this->assertContainerBuilderHasService('httplug.uri_factory.default', UriFactory::class); |
| 61 |
|
$this->assertContainerBuilderHasService('httplug.stream_factory.default', StreamFactory::class); |
| 62 |
|
$this->assertContainerBuilderHasService('httplug.async_client.default', HttpAsyncClient::class); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
public function testNoDiscoveryFallbacks(): void |
| 66 |
|
{ |