/** * Tests the <code>produce()</code> method with a connection error. * * @expectedException \RuntimeException */ public function testProduce_NoConnection() { $producer = new Producer('invalid', 4444); $producer->produce('default', 'foobar'); }