public function setWidth($value = 0)
{
$this->width = (double) $value;
return $this;
}
public function testWidth() { $object = new PlotArea(); $value = rand(0, 100); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setWidth()); $this->assertEquals(0, $object->getWidth()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Chart\\PlotArea', $object->setWidth($value)); $this->assertEquals($value, $object->getWidth()); }