setPointsArray(array(array(1, 2), array(3, 4))); $doc->addElement($poly); $this->assertAttrValueEquals($doc, '/svg:svg/svg:polyline/@points', '1,2 3,4'); } public function testSetters() { $doc = new csDocument(320, 240, 'Blah'); $poly = new csPolyline(); $poly->setX(1); $poly->setY(2); $doc->addElement($poly); $this->assertAttrValueEquals($doc, '/svg:svg/svg:polyline/@x', 1); $this->assertAttrValueEquals($doc, '/svg:svg/svg:polyline/@y', 2); } }