assertNull($object->getWidth()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Fill', $object->getFill()); } /** * Test get/set fill */ public function testSetGetFill() { $object = new Outline(); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Fill', $object->getFill()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setFill(new Fill())); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Fill', $object->getFill()); } /** * Test get/set width */ public function testSetGetWidth() { $object = new Outline(); $this->assertNull($object->getWidth()); $value = rand(1, 100); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth($value)); $this->assertEquals($value, $object->getWidth()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Outline', $object->setWidth(1.5)); $this->assertEquals(1, $object->getWidth()); } }