diff --git a/CHANGELOG.md b/CHANGELOG.md index c0cb09955..e4b941ca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## [0.8.39](https://github.com/php-enqueue/enqueue-dev/tree/0.8.39) (2018-10-19) +[Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.8.38...0.8.39) + +- Consuming with Simple Client and Kafka [\#557](https://github.com/php-enqueue/enqueue-dev/issues/557) + +- Merge pull request \#552 from versh23/stomp-public [\#568](https://github.com/php-enqueue/enqueue-dev/pull/568) ([versh23](https://github.com/versh23)) + ## [0.8.38](https://github.com/php-enqueue/enqueue-dev/tree/0.8.38) (2018-10-16) [Full Changelog](https://github.com/php-enqueue/enqueue-dev/compare/0.8.37...0.8.38) diff --git a/pkg/stomp/StompContext.php b/pkg/stomp/StompContext.php index 446a97500..c5584f04c 100644 --- a/pkg/stomp/StompContext.php +++ b/pkg/stomp/StompContext.php @@ -189,7 +189,7 @@ public function close() /** * @return BufferedStompClient */ - private function getStomp() + public function getStomp() { if (false == $this->stomp) { $stomp = call_user_func($this->stompFactory); diff --git a/pkg/stomp/Tests/StompContextTest.php b/pkg/stomp/Tests/StompContextTest.php index f3b07a0ee..daa6f39e9 100644 --- a/pkg/stomp/Tests/StompContextTest.php +++ b/pkg/stomp/Tests/StompContextTest.php @@ -213,6 +213,13 @@ public function testCreateTemporaryQueuesWithUniqueNames() $this->assertNotEquals($fooTempQueue->getStompName(), $barTempQueue->getStompName()); } + public function testShouldGetBufferedStompClient() + { + $context = new StompContext($this->createStompClientMock()); + + $this->assertInstanceOf(BufferedStompClient::class, $context->getStomp()); + } + /** * @return \PHPUnit_Framework_MockObject_MockObject|BufferedStompClient */