public function setText($text = '') { $this->text = $text; return $this; }
public function testGetSetText() { $expectedText = 'AABBCCDD'; $object = new Comment(); $this->assertNull($object->getText()); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setText($expectedText)); $this->assertEquals($expectedText, $object->getText()); }