Skip to content

Commit ddf5dd0

Browse files
committed
fix travis CI
1 parent 04b947a commit ddf5dd0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tests/RabbitMQQueueTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,18 @@ public function setUp()
4848

4949
public function test_size()
5050
{
51-
$this->queue->size();
51+
$messageCount = 5;
52+
$consumerCount = 1;
53+
54+
$this->channel->shouldReceive('queue_declare')->with(
55+
$this->config['queue'],
56+
true
57+
)->once()
58+
->andReturn([$this->config['queue'], $messageCount, $consumerCount]);
59+
60+
$size = $this->queue->size();
61+
62+
$this->assertEquals($messageCount, $size);
5263
}
5364

5465
public function test_push()

0 commit comments

Comments
 (0)