setHeight(1); $rect->setRx(3); $rect->setRy(4); $rect->setWidth(5); $rect->setX(6); $rect->setY(7); $doc->addElement($rect); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@height', 1); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@rx', 3); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@ry', 4); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@width', 5); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@x', 6); $this->assertAttrValueEquals($doc, '/svg:svg/svg:rect/@y', 7); } }