public function testConfigException() { $this->setExpectedException('\\Amqp\\Exception', 'Amqp connection\'s config not setted'); $connection = new AmqpConnection(); $connection->getConfig(); }