Пример #1
0
 public function testGetSetVAutoShrink()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoShrinkVertical());
     $this->assertNull($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoShrinkVertical(2));
     $this->assertNull($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoShrinkVertical(true));
     $this->assertTrue($object->hasAutoShrinkVertical());
     $this->assertInstanceOf('PhpOffice\\PhpPowerpoint\\Shape\\RichText', $object->setAutoShrinkVertical(false));
     $this->assertFalse($object->hasAutoShrinkVertical());
 }