Ejemplo n.º 1
0
 /**
  * Build GIF Subdef object depending the SimpleXMLElement
  *
  * @param  SimpleXMLElement                    $sd
  * @return \Alchemy\Phrasea\Media\Subdef\Video
  */
 protected function buildGifSubdef(SimpleXMLElement $sd)
 {
     $gif = new Gif($this->translator);
     if ($sd->size) {
         $gif->setOptionValue(Gif::OPTION_SIZE, (int) $sd->size);
     }
     if ($sd->delay) {
         $gif->setOptionValue(Gif::OPTION_DELAY, (int) $sd->delay);
     }
     return $gif;
 }
Ejemplo n.º 2
0
 /**
  * @covers Alchemy\Phrasea\Media\Subdef\Gif::getMediaAlchemystSpec
  */
 public function testGetMediaAlchemystSpec()
 {
     $this->assertInstanceOf('\\MediaAlchemyst\\Specification\\Animation', $this->object->getMediaAlchemystSpec());
 }