Code Duplication    Length = 12-12 lines in 2 locations

tests/Functional/ServiceInstantiationTest.php 2 locations

@@ 31-42 (lines=12) @@
28
29
class ServiceInstantiationTest extends WebTestCase
30
{
31
    public function testHttpClient(): void
32
    {
33
        if (!class_exists(Client::class)) {
34
            $this->markTestSkipped('Guzzle7 adapter is not installed');
35
        }
36
37
        static::bootKernel();
38
        $container = static::$kernel->getContainer();
39
        $this->assertTrue($container->has('httplug.client'));
40
        $client = $container->get('httplug.client');
41
        $this->assertInstanceOf(HttpClient::class, $client);
42
    }
43
44
    public function testHttpClientNoDebug(): void
45
    {
@@ 44-55 (lines=12) @@
41
        $this->assertInstanceOf(HttpClient::class, $client);
42
    }
43
44
    public function testHttpClientNoDebug(): void
45
    {
46
        if (!class_exists(Client::class)) {
47
            $this->markTestSkipped('Guzzle7 adapter is not installed');
48
        }
49
50
        static::bootKernel(['debug' => false]);
51
        $container = static::$kernel->getContainer();
52
        $this->assertTrue($container->has('httplug.client'));
53
        $client = $container->get('httplug.client');
54
        $this->assertInstanceOf(HttpClient::class, $client);
55
    }
56
57
    /**
58
     * @group legacy