Skip to content

Commit 3f5e9c3

Browse files
committed
fix
1 parent 1a8e44e commit 3f5e9c3

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

pkg/stomp/Tests/StompConnectionFactoryTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,4 @@ public function testShouldCreateLazyContext()
2828
$this->assertAttributeEquals(null, 'stomp', $context);
2929
$this->assertInternalType('callable', $this->readAttribute($context, 'stompFactory'));
3030
}
31-
32-
public function testShouldGetBufferedStompClient()
33-
{
34-
$factory = new StompConnectionFactory();
35-
36-
$context = $factory->createContext();
37-
38-
$this->assertInstanceOf(BufferedStompClient::class, $context->getStomp());
39-
}
4031
}

pkg/stomp/Tests/StompContextTest.php

Lines changed: 7 additions & 0 deletions
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)