pecl-tools-stomp/tests/bug_16930.phpt

18 lines
314 B
Plaintext
Raw Permalink Normal View History

2009-11-15 01:05:01 +03:00
--TEST--
Bug #16930 - readFrame reports error-frames as "timeout"
--SKIPIF--
<?php if (!extension_loaded("stomp")) print "skip"; ?>
--FILE--
<?php
$s = new Stomp();
$s->abort('t2');
try {
var_dump($s->readFrame());
} catch(StompException $e) {
var_dump($e->getMessage());
}
?>
--EXPECTF--
string(%d) "%s"