Skip to content

Commit df07c54

Browse files
committed
add test
1 parent 6cd6962 commit df07c54

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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)