setWrap() public method

Set text wrapping
public setWrap ( $value = self::WRAP_SQUARE ) : RichText
$value string
return RichText
Exemplo n.º 1
0
 public function testGetSetWrap()
 {
     $object = new RichText();
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setWrap());
     $this->assertEquals(RichText::WRAP_SQUARE, $object->getWrap());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText', $object->setWrap(RichText::WRAP_NONE));
     $this->assertEquals(RichText::WRAP_NONE, $object->getWrap());
 }