Skip to content
Snippets Groups Projects

F8072 new token fexclude

Merged Carsten Rose requested to merge F8072NewTokenFexclude into master
1 file
+ 32
0
Compare changes
  • Side-by-side
  • Inline
@@ -1232,6 +1232,38 @@ EOF;
$this->assertEquals($expect, $result);
}
/**
* @throws CodeException
* @throws DbException
* @throws DownloadException
* @throws UserFormException
* @throws UserReportException
* @throws \PhpOffice\PhpSpreadsheet\Exception
* @throws \PhpOffice\PhpSpreadsheet\Reader\Exception
* @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
*/
public function testReportWrap() {
$line = <<<EOF
10.sql = SELECT id, name, firstname FROM Person ORDER BY id LIMIT 2
10.head = <table>
10.tail = </table>
10.rbeg = <tr>
10.renr = </tr>
10.rsep = --
10.fbeg = <td>
10.fend = </td>
10.fsep = ++
10.fskipwrap = 1,3
EOF;
$result = $this->report->process($line);
$expect = "<table><tr>1++<td>Doe</td>John</tr>--<tr>2++<td>Smith</td>Jane</tr></table>";
$this->assertEquals($expect, $result);
}
/**
* @throws CodeException
* @throws DbException
Loading