File: 001.phpt

package info (click to toggle)
php-stomp 2.0.2%2B1.0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 536 kB
  • sloc: ansic: 3,350; xml: 819; php: 119; makefile: 1
file content (22 lines) | stat: -rw-r--r-- 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test stomp::readFrame() - tests functionnality and parameters
--SKIPIF--
<?php
$require_connection = true;
include dirname(__DIR__) . "/skipif.inc";
?>
--FILE--
<?php 
include dirname(__DIR__) . "/config.inc";

$s = new Stomp(STOMP_ADDRESS);

$s->send('/queue/test-09', 'A test Message');
$s->subscribe('/queue/test-09', array('ack' => 'auto'));
var_dump($s->readFrame()->body);
var_dump($s->readFrame());

?>
--EXPECTF--
string(14) "A test Message"
bool(false)