public function drawClippingSquare($x, $y, $w) { $this->drawClippingRectangle($x, $y, $w); return $this; }
public function testAddClippingSquare() { $s = new Svg('graph.svg', '640px', '480px'); $s->drawClippingSquare(10, 10, 240); $this->assertEquals(640, $s->getWidth()); }