Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632980
amqpexchange_declare_with_stalled_reference.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
856 B
Referenced Files
None
Subscribers
None
amqpexchange_declare_with_stalled_reference.phpt
View Options
--TEST--
AMQPExchange - declare with stalled reference
--SKIPIF--
<?php
if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded";
?>
--FILE--
<?php
class ConnectionMock extends AMQPConnection {
public function __construct(array $credentials = array())
{
}
}
class ChannelMock extends AMQPChannel {
public function __construct(AMQPConnection $amqp_connection)
{
}
}
class ExchangeMock extends \AMQPExchange
{
public function __construct(AMQPChannel $amqp_channel)
{
}
}
$cnn = new ConnectionMock();
$ch = new ChannelMock($cnn);
$e = new ExchangeMock($ch);
try {
$e->declareExchange();
} catch (\Exception $e) {
echo get_class($e), "({$e->getCode()}): ", $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
AMQPChannelException(0): Could not declare exchange. Stale reference to the channel object.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 3:46 PM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145531
Default Alt Text
amqpexchange_declare_with_stalled_reference.phpt (856 B)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline