TCPDF doesn't support PHP 8.0, skip test

This commit is contained in:
Libor M 2021-01-10 14:33:13 +01:00
parent ea917c28da
commit 293efab0c2
1 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,12 @@ class TCPDFTest extends \PHPUnit\Framework\TestCase
return;
}
// TCPDF version 6.3.5 doesn't support PHP 8.0, fixed via https://github.com/tecnickcom/TCPDF/pull/293,
// pending new release.
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
return;
}
$file = __DIR__ . '/../../_files/tcpdf.pdf';
$phpWord = new PhpWord();