setX(1); $text->setY(2); $text->setFontFamily('Georgia'); $text->setFontSize(1); $text->setFontSizeAdjust(2); $text->setFontStretch(3); $text->setFontStyle('color: red'); $text->setFontVariant('italic'); $text->setFontWeight('bold'); $doc->addElement($text); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@x', 1); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@y', 2); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-family', "Georgia"); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-size', 1); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-size-adjust', 2); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-stretch', 3); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-style', "color: red"); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-variant', "italic"); $this->assertAttrValueEquals($doc, '/svg:svg/svg:text/@font-weight', "bold"); } }