Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629422
amqpconnection_setPort_string.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
457 B
Referenced Files
None
Subscribers
None
amqpconnection_setPort_string.phpt
View Options
--TEST--
AMQPConnection setPort with string
--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'));
$port = '12345';
var_dump($cnn->setPort($port));
var_dump($cnn->getPort());
var_dump($port);
?>
--EXPECT--
NULL
int(12345)
string(5) "12345"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 6:47 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
146218
Default Alt Text
amqpconnection_setPort_string.phpt (457 B)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline