public function testMarshall() { $hottext = new Hottext('choice1', 'my-hottext1', 'so hot'); $hottext->setFixed(true); $hottext->setShowHide(ShowHide::HIDE); $hottext->setTemplateIdentifier('tpl1'); $hottext->setContent(new InlineStaticCollection(array(new TextRun('Choice1')))); $element = $this->getMarshallerFactory('2.1.0')->createMarshaller($hottext)->marshall($hottext); $dom = new DOMDocument('1.0', 'UTF-8'); $element = $dom->importNode($element, true); $this->assertEquals('<hottext id="my-hottext1" class="so hot" identifier="choice1" fixed="true" templateIdentifier="tpl1" showHide="hide">Choice1</hottext>', $dom->saveXML($element)); }