Page MenuHomePhabricator (Chris)

amqpconnection_setTimeout_out_of_range.phpt
No OneTemporary

Authored By
Unknown
Size
565 B
Referenced Files
None
Subscribers
None

amqpconnection_setTimeout_out_of_range.phpt

--TEST--
AMQPConnection setTimeout out of range
--SKIPIF--
<?php
if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded";
?>
--FILE--
<?php
$cnn = new AMQPConnection();
try {
$cnn->setTimeout(-1);
} catch (Exception $e) {
echo get_class($e);
echo PHP_EOL;
echo $e->getMessage();
}
?>
--EXPECTF--
%s: AMQPConnection::setTimeout(): AMQPConnection::setTimeout($timeout) method is deprecated; use AMQPConnection::setReadTimeout($timeout) instead in %s on line 4
AMQPConnectionException
Parameter 'timeout' must be greater than or equal to zero.

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 15, 4:14 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145752
Default Alt Text
amqpconnection_setTimeout_out_of_range.phpt (565 B)

Event Timeline