File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public function close()
189
189
/**
190
190
* @return BufferedStompClient
191
191
*/
192
- private function getStomp ()
192
+ public function getStomp ()
193
193
{
194
194
if (false == $ this ->stomp ) {
195
195
$ stomp = call_user_func ($ this ->stompFactory );
Original file line number Diff line number Diff line change @@ -213,6 +213,13 @@ public function testCreateTemporaryQueuesWithUniqueNames()
213
213
$ this ->assertNotEquals ($ fooTempQueue ->getStompName (), $ barTempQueue ->getStompName ());
214
214
}
215
215
216
+ public function testShouldGetBufferedStompClient ()
217
+ {
218
+ $ context = new StompContext ($ this ->createStompClientMock ());
219
+
220
+ $ this ->assertInstanceOf (BufferedStompClient::class, $ context ->getStomp ());
221
+ }
222
+
216
223
/**
217
224
* @return \PHPUnit_Framework_MockObject_MockObject|BufferedStompClient
218
225
*/
You can’t perform that action at this time.
0 commit comments