skip TCPDF test in PHP 5.3, because

version 6.3.5 doesn't support PHP 5.3, fixed via https://github.com/tecnickcom/TCPDF/pull/197, pending new release.
This commit is contained in:
Libor M 2020-10-18 07:47:25 +02:00
parent eaf2212aa8
commit 6d49b28678
1 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,12 @@ class TCPDFTest extends \PHPUnit\Framework\TestCase
*/
public function testConstruct()
{
// TCPDF version 6.3.5 doesn't support PHP 5.3, fixed via https://github.com/tecnickcom/TCPDF/pull/197,
// pending new release.
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
return;
}
$file = __DIR__ . '/../../_files/tcpdf.pdf';
$phpWord = new PhpWord();