/** * @param ReferenceTable $table */ public function flush(ReferenceTable &$table) { if (is_string($table->getContent())) { if (trim($table->getContent()) > '') { $this->sheet->cell($table->getColumn() . $table->getRow(), $table->getContent()); $table->rememberData($table->getContent()); } } else { $table->rememberData('RICH TEXT: ' . $table->getContent()); } $table->setContent(''); }
public function test_append_content_by_node() { $node = new \DOMElement('name', 'value'); $this->table->appendContentByNode($node); $this->assertEquals('value', $this->table->getContent()); }