drawSquare() public method

Method to add a square to the image.
public drawSquare ( integer $x, integer $y, integer $w ) : Svg
$x integer
$y integer
$w integer
return Svg
Exemplo n.º 1
0
 public function testAddSquare()
 {
     $s = new Svg('graph.svg', '640px', '480px');
     $s->drawSquare(10, 10, 100);
     $this->assertEquals(640, $s->getWidth());
 }