Commit 745f989d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #8072: fskipwrap - add unit test

parent 97c33822
Pipeline #1747 passed with stage
in 2 minutes and 4 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment