Code Duplication    Length = 11-11 lines in 2 locations

tests/Connection/Strategy/SimpleTest.php 1 location

@@ 42-52 (lines=11) @@
39
    /**
40
     * @group functional
41
     */
42
    public function testFailConnection(): void
43
    {
44
        $this->expectException(\Elastica\Exception\ConnectionException::class);
45
46
        $config = ['host' => '255.255.255.0', 'timeout' => $this->_timeout];
47
        $client = $this->_getClient($config);
48
49
        $this->_checkStrategy($client);
50
51
        $client->request('_aliases');
52
    }
53
54
    /**
55
     * @group functional

tests/Connection/Strategy/RoundRobinTest.php 1 location

@@ 54-64 (lines=11) @@
51
    /**
52
     * @group functional
53
     */
54
    public function testFailConnection(): void
55
    {
56
        $this->expectException(\Elastica\Exception\ConnectionException::class);
57
58
        $config = ['connectionStrategy' => 'RoundRobin', 'host' => '255.255.255.0', 'timeout' => $this->_timeout];
59
        $client = $this->_getClient($config);
60
61
        $this->_checkStrategy($client);
62
63
        $client->request('_aliases');
64
    }
65
66
    /**
67
     * @group functional