Exemple #1
0
 /**
  * Set Elements
  *
  * @param array $elements Elements
  *
  * @return void
  */
 public function setElements(array $elements)
 {
     $this->elements = array();
     foreach ($elements as $element) {
         $newElement = FactoryElement::getFactory($element['type']);
         $newElement->setProperties($element);
         $this->elements[] = $newElement;
     }
 }
 /**
  * @covers RevPDFLib\Items\Element\FactoryElement::getFactory
  *
  * @expectedException        InvalidArgumentException
  * @expectedExceptionMessage Type NOT supported : qsd
  */
 public function testException()
 {
     $this->object = FactoryElement::getFactory('qsd');
 }