Testomatio - Test Management for Codeception
This module interacts with message broker software that implements the Advanced Message Queuing Protocol (AMQP) standard. For example, RabbitMQ (tested).
modules:
enabled:
- AMQP:
host: 'localhost'
port: '5672'
username: 'guest'
password: 'guest'
vhost: '/'
queues: [queue1, queue2]
single_channel: false
param string
$queueparam string
$exchangeparam string
$routing_keyparam bool
$nowaitparam ?array
$argumentsparam ?int
$ticketreturn mixed
Binds a queue to an exchange
This is an alias of method queue_bind
of PhpAmqpLib\Channel\AMQPChannel
.
param string
$exchangeparam string
$typeparam bool
$passiveparam bool
$durableparam bool
$auto_deleteparam bool
$internalparam bool
$nowaitparam ?array
$argumentsparam ?int
$ticketreturn mixed
Declares an exchange
This is an alias of method exchange_declare
of PhpAmqpLib\Channel\AMQPChannel
.
param string
$queueparam bool
$passiveparam bool
$durableparam bool
$exclusiveparam bool
$auto_deleteparam bool
$nowaitparam ?array
$argumentsparam ?int
$ticketreturn mixed
Declares queue, creates if needed
This is an alias of method queue_declare
of PhpAmqpLib\Channel\AMQPChannel
.
param string
$queuereturn void
Checks if queue is not empty.
param string
$queuereturn ?\PhpAmqpLib\Message\AMQPMessage
Takes last message from queue.
return void
Purge all queues defined in config.
param string
$queueNamereturn void
Purge a specific queue defined in config.
param string
$exchangeparam \PhpAmqpLib\Message\AMQPMessage|string
$messageparam ?string
$routing_keyreturn void
Sends message to exchange by sending exchange name, message and (optionally) a routing key
param string
$queueparam \PhpAmqpLib\Message\AMQPMessage|string
$messagereturn void
Sends message to queue
param string
$queuereturn void
Add a queue to purge list
param string
$queueparam string
$textreturn void
Checks if message containing text received.
This method drops message from queue This method will wait for message. If none is sent the script will stuck.
param string
$queueparam int
$expectedreturn void
Checks that queue have expected number of message
param string
$queuereturn void
Checks that queue is empty