public function setBarWidth($width) { $this->barWidth = (int) $width; return $this; }
public function testSetBarWidth() { $g = new Graph($this->imageOptions); $g->setBarWidth(5); $this->assertEquals(5, $g->getBarWidth()); }