Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F631462
amqpconnection_setVhost.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
443 B
Referenced Files
None
Subscribers
None
amqpconnection_setVhost.phpt
View Options
--TEST--
AMQPConnection setVhost
--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'));
var_dump($cnn->getVhost());
$cnn->setVhost('nonexistent');
var_dump($cnn->getVhost());
--EXPECTF--
string(1) "/"
string(11) "nonexistent"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 12:02 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145550
Default Alt Text
amqpconnection_setVhost.phpt (443 B)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline