예제 #1
1
파일: ImageTest.php 프로젝트: haoyanfei/zf2
 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();
 }