Code Duplication    Length = 11-11 lines in 2 locations

tests/Functional/DiscoveredClientsTest.php 2 locations

@@ 40-50 (lines=11) @@
37
        $this->assertInstanceOf(HttpAsyncClient::class, $service);
38
    }
39
40
    public function testDiscoveredClientWithProfilingEnabled()
41
    {
42
        $container = $this->getContainer(true);
43
44
        $this->assertTrue($container->has('httplug.auto_discovery.auto_discovered_client'));
45
46
        $service = $container->get('httplug.auto_discovery.auto_discovered_client');
47
48
        $this->assertInstanceOf(ProfileClient::class, $service);
49
        $this->assertInstanceOf(HttpClient::class, NSA::getProperty($service, 'client'));
50
    }
51
52
    public function testDiscoveredAsyncClientWithProfilingEnabled()
53
    {
@@ 52-62 (lines=11) @@
49
        $this->assertInstanceOf(HttpClient::class, NSA::getProperty($service, 'client'));
50
    }
51
52
    public function testDiscoveredAsyncClientWithProfilingEnabled()
53
    {
54
        $container = $this->getContainer(true);
55
56
        $this->assertTrue($container->has('httplug.auto_discovery.auto_discovered_async'));
57
58
        $service = $container->get('httplug.auto_discovery.auto_discovered_async');
59
60
        $this->assertInstanceOf(ProfileClient::class, $service);
61
        $this->assertInstanceOf(HttpAsyncClient::class, NSA::getProperty($service, 'client'));
62
    }
63
64
    /**
65
     * Test with httplug.discovery.client: "auto".