public function testScriptFeaturesWithChild() { $frame = new Frame(); $child = new Audio(); $preloadFeature = new Preload(); $child->addScriptFeature($preloadFeature); $this->assertEmpty($frame->getScriptFeatures()); $frame->addChild($child); $this->assertEquals(array($preloadFeature), $frame->getScriptFeatures()); $frame->removeAllChildren(); $this->assertEmpty($frame->getScriptFeatures()); }
/** * @see Renderable::render() */ public function render(\DOMDocument $domDocument) { $frame = new Frame(); $label = $this->getLabel(); $frame->addChild($label); $entry = $this->getEntry(); $frame->addChild($entry); return $frame->render($domDocument); }
/** * @see Renderable::render() */ public function render(\DOMDocument $domDocument) { $frame = new Frame(); $quad = $this->getQuad(); $frame->addChild($quad); $entry = $this->getEntry(); $frame->addChild($entry); return $frame->render($domDocument); }