Code Duplication    Length = 11-11 lines in 2 locations

Tests/Transport/Subscriber/PublisherTest.php 2 locations

@@ 52-62 (lines=11) @@
49
        $this->assertEquals(ExchangeType::DIRECT, $publisher->getExchangeType());
50
    }
51
52
    public function testRefreshChannel()
53
    {
54
        $publisher = new Publisher(
55
            'exch_test',
56
            ExchangeType::FANOUT,
57
            $this->getConnectionManagerMock(),
58
            'test'
59
        );
60
61
        $this->assertInstanceOf(CmobiAMQPChannel::class, $publisher->refreshChannel());
62
    }
63
64
    public function testGetChannel()
65
    {
@@ 64-74 (lines=11) @@
61
        $this->assertInstanceOf(CmobiAMQPChannel::class, $publisher->refreshChannel());
62
    }
63
64
    public function testGetChannel()
65
    {
66
        $publisher = new Publisher(
67
            'exch_test',
68
            ExchangeType::FANOUT,
69
            $this->getConnectionManagerMock(),
70
            'test'
71
        );
72
73
        $this->assertInstanceOf(CmobiAMQPChannel::class, $publisher->refreshChannel());
74
    }
75
76
    public function testGetFromName()
77
    {