public function testRendererWithUnkownInstructionProvideByObject() { $this->setExpectedException('\Zend\Barcode\Renderer\Exception'); $object = new TestAsset\BarcodeTest(); $object->setText('test'); $object->addInstruction(array('type' => 'unknown')); $this->_renderer->setBarcode($object); $this->_renderer->draw(); }