Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632188
amqpconnection_setRpcTimeout_out_of_range.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
545 B
Referenced Files
None
Subscribers
None
amqpconnection_setRpcTimeout_out_of_range.phpt
View Options
--TEST--
AMQPConnection setRpcTimeout out of range
--SKIPIF--
<?php
if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded";
elseif (!getenv("PHP_AMQP_HOST")) print "skip PHP_AMQP_HOST environment variable is not set";
?>
--FILE--
<?php
$cnn = new AMQPConnection();
$cnn->setHost(getenv('PHP_AMQP_HOST'));
try {
$cnn->setRpcTimeout(-1);
} catch (Exception $e) {
echo get_class($e);
echo PHP_EOL;
echo $e->getMessage();
}
?>
--EXPECT--
AMQPConnectionException
Parameter 'rpcTimeout' must be greater than or equal to zero.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 1:46 PM (10 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
142874
Default Alt Text
amqpconnection_setRpcTimeout_out_of_range.phpt (545 B)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline