File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public function close()
189189 /**
190190 * @return BufferedStompClient
191191 */
192- private function getStomp ()
192+ public function getStomp ()
193193 {
194194 if (false == $ this ->stomp ) {
195195 $ stomp = call_user_func ($ this ->stompFactory );
Original file line number Diff line number Diff line change @@ -213,6 +213,13 @@ public function testCreateTemporaryQueuesWithUniqueNames()
213213 $ this ->assertNotEquals ($ fooTempQueue ->getStompName (), $ barTempQueue ->getStompName ());
214214 }
215215
216+ public function testShouldGetBufferedStompClient ()
217+ {
218+ $ context = new StompContext ($ this ->createStompClientMock ());
219+
220+ $ this ->assertInstanceOf (BufferedStompClient::class, $ context ->getStomp ());
221+ }
222+
216223 /**
217224 * @return \PHPUnit_Framework_MockObject_MockObject|BufferedStompClient
218225 */
You can’t perform that action at this time.
0 commit comments