@@ 117-135 (lines=19) @@ | ||
114 | ); |
|
115 | } |
|
116 | ||
117 | public function testGetExchangeDeclare() |
|
118 | { |
|
119 | $queueBag = new SubscriberQueueBag('test', ExchangeType::DIRECT); |
|
120 | ||
121 | $this->assertEquals( |
|
122 | [ |
|
123 | 'test', |
|
124 | ExchangeType::DIRECT, |
|
125 | false, |
|
126 | false, |
|
127 | false, |
|
128 | false, |
|
129 | false, |
|
130 | null, |
|
131 | null, |
|
132 | ], |
|
133 | $queueBag->getExchangeDeclare() |
|
134 | ); |
|
135 | } |
|
136 | ||
137 | public function testBadTypeInGetExchangeDeclare() |
|
138 | { |
|
@@ 137-156 (lines=20) @@ | ||
134 | ); |
|
135 | } |
|
136 | ||
137 | public function testBadTypeInGetExchangeDeclare() |
|
138 | { |
|
139 | $queueBag = new SubscriberQueueBag('test', ExchangeType::DIRECT); |
|
140 | ||
141 | $this->assertNotEquals( |
|
142 | [ |
|
143 | 'test', |
|
144 | ExchangeType::FANOUT, |
|
145 | false, |
|
146 | false, |
|
147 | false, |
|
148 | false, |
|
149 | false, |
|
150 | false, |
|
151 | null, |
|
152 | null, |
|
153 | ], |
|
154 | $queueBag->getExchangeDeclare() |
|
155 | ); |
|
156 | } |
|
157 | } |
|
158 |