pdezwart/php-amqp — pull request #2 by bkw (2012-09-14 15:55:38+00:00)
Title: Allow overriding declare for queues and exchanges.

This patch renames AMQPExchange::declare() to AMQPExchange::declareExchange() and AMQPQueue::declare() to AMQPQueue::declareQueue() to make it possible to override this in derived Classes (essential for mocking these classes for unittesting without a broker).

It also introduces two aliases ::declare() to provide backwards compability.