Code Duplication    Length = 11-12 lines in 2 locations

Tests/Transport/Subscriber/PublisherTest.php 2 locations

@@ 40-50 (lines=11) @@
37
        $this->assertEquals('exch_test', $publisher->getExchange());
38
    }
39
40
    public function testGetExchangeType()
41
    {
42
        $publisher = new Publisher(
43
            'exch_test',
44
            ExchangeType::DIRECT,
45
            $this->getConnectionManagerMock(),
46
            'test'
47
        );
48
49
        $this->assertEquals(ExchangeType::DIRECT, $publisher->getExchangeType());
50
    }
51
52
    public function testGetFromName()
53
    {
@@ 52-63 (lines=12) @@
49
        $this->assertEquals(ExchangeType::DIRECT, $publisher->getExchangeType());
50
    }
51
52
    public function testGetFromName()
53
    {
54
        $publisher = new Publisher(
55
            'exch_test',
56
            ExchangeType::FANOUT,
57
            $this->getConnectionManagerMock(),
58
            'caller_test',
59
            ''
60
        );
61
62
        $this->assertEquals('caller_test', $publisher->getFromName());
63
    }
64
65
    /**
66
     * @return ConnectionManager