diff options
Diffstat (limited to 'tests/app/Module/DescendancyReportModuleTest.php')
| -rw-r--r-- | tests/app/Module/DescendancyReportModuleTest.php | 11 |
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); } |
