summaryrefslogtreecommitdiff
path: root/tests/app/Module/DescendancyReportModuleTest.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-12-20 14:09:08 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-12-20 14:09:08 +0000
commitd44668f6cee02a5ac8030fd9e0fe2e7fdf2217ce (patch)
tree547731aa5d6df60cdb20a2c9256072af9e1dfaa4 /tests/app/Module/DescendancyReportModuleTest.php
parentd6d267bde52d522e3889574798ca4315da9009b4 (diff)
downloadwebtrees-d44668f6cee02a5ac8030fd9e0fe2e7fdf2217ce.tar.gz
webtrees-d44668f6cee02a5ac8030fd9e0fe2e7fdf2217ce.tar.bz2
webtrees-d44668f6cee02a5ac8030fd9e0fe2e7fdf2217ce.zip
Fix: #2777 tcpdf seems abandoned - apply patches locally
Diffstat (limited to 'tests/app/Module/DescendancyReportModuleTest.php')
-rw-r--r--tests/app/Module/DescendancyReportModuleTest.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/app/Module/DescendancyReportModuleTest.php b/tests/app/Module/DescendancyReportModuleTest.php
index 2c17e1b407..cc8ca16a6f 100644
--- a/tests/app/Module/DescendancyReportModuleTest.php
+++ b/tests/app/Module/DescendancyReportModuleTest.php
@@ -104,16 +104,9 @@ class DescendancyReportModuleTest extends TestCase
$this->assertStringEndsWith('>', $html);
ob_start();
- try {
- if (PHP_VERSION_ID >= 70400) {
- $this->expectException(Notice::class);
- $this->expectExceptionMessage('Trying to access array offset on value of type int');
- }
+ new ReportParserGenerate($xml, new PdfRenderer(), $vars, $tree, $data_filesystem);
+ $pdf = ob_get_clean();
- new ReportParserGenerate($xml, new PdfRenderer(), $vars, $tree, $data_filesystem);
- } finally {
- $pdf = ob_get_clean();
- }
$this->assertStringStartsWith('%PDF', $pdf);
$this->assertStringEndsWith("%%EOF\n", $pdf);
}