public function setStrokeWidth($wid = null, $dash_len = null, $dash_gap = null) { if (null === $wid || $wid == false || $wid == 0) { $this->strokeWidth = null; $this->strokeDashLength = null; $this->strokeDashGap = null; } else { $this->strokeWidth = $wid; $this->strokeDashLength = $dash_len; $this->strokeDashGap = $dash_gap; } return $this; }
public function testBorder() { $s = new Svg('graph.svg', '640px', '480px'); $s->setStrokeWidth(5, 6, 4); $s->border(5); $this->assertEquals(640, $s->getWidth()); }