public function testNoFontWithOrientation() { $this->setExpectedException('\\Zend\\Barcode\\Renderer\\Exception\\ExceptionInterface'); Barcode\Barcode::setBarcodeFont(null); $barcode = new Object\Code39(array('text' => '0123456789')); $barcode->setOrientation(1); $this->renderer->setBarcode($barcode); $this->renderer->draw(); }
/** * @expectedException \Zend\Barcode\Renderer\Exception */ public function testNoFontWithOrientation() { Barcode\Barcode::setBarcodeFont(null); $barcode = new Object\Code39(array('text' => '0123456789')); $barcode->setOrientation(1); $this->_renderer->setBarcode($barcode); $this->_renderer->draw(); }