Chris@0: --TEST-- Chris@0: Multiline table cells Chris@0: --FILE-- Chris@0: setHeaders(array("h1\nmultiline", 'h2', "h3", 'h4')); Chris@0: $table->addData($data); Chris@0: echo $table->getTable(); Chris@0: Chris@0: echo Console_Table::fromArray(array('one line header'), Chris@0: array(array("multiple\nlines"), Chris@0: array('one line'))); Chris@0: Chris@0: ?> Chris@0: --EXPECT-- Chris@0: +-----------+--------+-----------+--------+ Chris@0: | h1 | h2 | h3 | h4 | Chris@0: | multiline | | | | Chris@0: +-----------+--------+-----------+--------+ Chris@0: | col1 | 0 | col3 | col4 | Chris@0: | | | multiline | | Chris@0: | r2col1 | r2col2 | r2col3 | r2col4 | Chris@0: | | | multiline | | Chris@0: | r3col1 | r3col2 | r3col3 | r3col4 | Chris@0: | | | multiline | | Chris@0: | | | verymuch | | Chris@0: | r4col1 | r4col2 | r4col3 | r4col4 | Chris@0: | r5col1 | r5col2 | r5col3 | r5col4 | Chris@0: +-----------+--------+-----------+--------+ Chris@0: +-----------------+ Chris@0: | one line header | Chris@0: +-----------------+ Chris@0: | multiple | Chris@0: | lines | Chris@0: | one line | Chris@0: +-----------------+