Permalink
Browse files

Auto ack received messages for readframe test

  • Loading branch information...
1 parent 7d61983 commit 8e8861ea8faadf3390c1223a0471d681f48f4e02 @adoy adoy committed Nov 18, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/009-readFrame/001.phpt
  2. +1 −1 tests/009-readFrame/002.phpt
  3. +1 −1 tests/009-readFrame/003.phpt
View
2 tests/009-readFrame/001.phpt
@@ -9,7 +9,7 @@ Test stomp::readFrame() - tests functionnality and parameters
<?php
$s = new Stomp();
$s->send('/queue/test-09', 'A test Message');
-$s->subscribe('/queue/test-09');
+$s->subscribe('/queue/test-09', array('ack' => 'auto'));
var_dump($s->readFrame()->body);
var_dump($s->readFrame());
View
2 tests/009-readFrame/002.phpt
@@ -9,7 +9,7 @@ Test stomp_read_frame() - test functionnality and parameters
<?php
$link = stomp_connect();
stomp_send($link, '/queue/test-09', 'A test Message');
-stomp_subscribe($link, '/queue/test-09');
+stomp_subscribe($link, '/queue/test-09', array('ack' => 'auto'));
$result = stomp_read_frame($link);
var_dump($result['body']);
var_dump(stomp_read_frame($link));
View
2 tests/009-readFrame/003.phpt
@@ -18,7 +18,7 @@ class customFrame extends stompFrame
$s = new Stomp();
$s->send('/queue/test-09', 'A test Message');
-$s->subscribe('/queue/test-09');
+$s->subscribe('/queue/test-09', array('ack' => 'auto'));
$frame = $s->readFrame('customFrame');
var_dump(get_class($frame), $frame->body);
?>

0 comments on commit 8e8861e

Please sign in to comment.