/** * 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; }
/** * @covers Alchemy\Phrasea\Media\Subdef\Gif::getMediaAlchemystSpec */ public function testGetMediaAlchemystSpec() { $this->assertInstanceOf('\\MediaAlchemyst\\Specification\\Animation', $this->object->getMediaAlchemystSpec()); }