Skip to content

Commit 1a8e44e

Browse files
committed
add test
1 parent f2d26f1 commit 1a8e44e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎pkg/stomp/Tests/StompConnectionFactoryTest.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Enqueue\Stomp\Tests;
44

5+
use Enqueue\Stomp\BufferedStompClient;
56
use Enqueue\Stomp\StompConnectionFactory;
67
use Enqueue\Stomp\StompContext;
78
use Enqueue\Test\ClassExtensionTrait;
@@ -27,4 +28,13 @@ public function testShouldCreateLazyContext()
2728
$this->assertAttributeEquals(null, 'stomp', $context);
2829
$this->assertInternalType('callable', $this->readAttribute($context, 'stompFactory'));
2930
}
31+
32+
public function testShouldGetBufferedStompClient()
33+
{
34+
$factory = new StompConnectionFactory();
35+
36+
$context = $factory->createContext();
37+
38+
$this->assertInstanceOf(BufferedStompClient::class, $context->getStomp());
39+
}
3040
}

0 commit comments

Comments
 (0)