コード例 #1
0
 public function testGetSetAutoFit()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoFit());
     $this->assertEquals(RichText::AUTOFIT_DEFAULT, $object->getAutoFit());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoFit(RichText::AUTOFIT_NORMAL));
     $this->assertEquals(RichText::AUTOFIT_NORMAL, $object->getAutoFit());
 }