setText() 공개 메소드

Set text
public setText ( $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface
$pText string Text
리턴 PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface
예제 #1
0
 public function testText()
 {
     $object = new TextElement();
     $this->assertEquals('', $object->getText());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setText());
     $this->assertEquals('', $object->getText());
     $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\RichText\\TextElement', $object->setText('AAA'));
     $this->assertEquals('AAA', $object->getText());
 }