public function setAxisOptions(ColorInterface $color = null, $width = 2) { $this->axisColor = null === $color ? new Rgb(0, 0, 0) : $color; $this->axisWidth = (int) $width; return $this; }
public function testSetAxisOptions() { $g = new Graph($this->imageOptions); $g->setAxisOptions(new Rgb(128, 128, 128), 5); $this->assertEquals(new Rgb(128, 128, 128), $g->getAxisColor()); $this->assertEquals(5, $g->getAxisWidth()); }