setText() public method

Set text
public setText ( $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface
$pText string Text
return 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());
 }