示例#1
0
文件: TestCommon.php 项目: stunti/zf2
 public function testAddTextWithDefaultColor()
 {
     $object = new _files\BarcodeTest();
     $size = 10;
     $text = 'foobar';
     $position = array();
     $font = 'my_font.ttf';
     $color = 123456;
     $object->setForeColor($color);
     $alignment = 'right';
     $orientation = 45;
     $instructions = array('type' => 'text', 'text' => $text, 'size' => $size, 'position' => $position, 'font' => $font, 'color' => $color, 'alignment' => $alignment, 'orientation' => $orientation);
     $object->addText($text, $size, $position, $font, null, $alignment, $orientation);
     $this->assertSame(array($instructions), $object->getInstructions());
 }