示例#1
1
 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();
 }
示例#2
0
文件: ImageTest.php 项目: stunti/zf2
 /**
  * @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();
 }