@@ 25-32 (lines=8) @@ | ||
22 | ||
23 | class ServiceInstantiationTest extends WebTestCase |
|
24 | { |
|
25 | public function testHttpClient() |
|
26 | { |
|
27 | static::bootKernel(); |
|
28 | $container = static::$kernel->getContainer(); |
|
29 | $this->assertTrue($container->has('httplug.client')); |
|
30 | $client = $container->get('httplug.client'); |
|
31 | $this->assertInstanceOf(HttpClient::class, $client); |
|
32 | } |
|
33 | ||
34 | public function testHttpClientNoDebug() |
|
35 | { |
|
@@ 34-41 (lines=8) @@ | ||
31 | $this->assertInstanceOf(HttpClient::class, $client); |
|
32 | } |
|
33 | ||
34 | public function testHttpClientNoDebug() |
|
35 | { |
|
36 | static::bootKernel(['debug' => false]); |
|
37 | $container = static::$kernel->getContainer(); |
|
38 | $this->assertTrue($container->has('httplug.client')); |
|
39 | $client = $container->get('httplug.client'); |
|
40 | $this->assertInstanceOf(HttpClient::class, $client); |
|
41 | } |
|
42 | ||
43 | public function testDebugToolbar() |
|
44 | { |