Skip to content

Commit 736d189

Browse files
authored
Merge pull request #568 from versh23/0.8-add-stomp-public
Merge pull request #552 from versh23/stomp-public
2 parents 3207a91 + 15d1ced commit 736d189

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pkg/stomp/StompContext.php

+1-1
Original file line numberDiff line numberDiff 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);

pkg/stomp/Tests/StompContextTest.php

+7
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)