Skip to content

Commit 6d49b28

Browse files
committed
skip TCPDF test in PHP 5.3, because
version 6.3.5 doesn't support PHP 5.3, fixed via tecnickcom/TCPDF#197, pending new release.
1 parent eaf2212 commit 6d49b28

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/PhpWord/Writer/PDF/TCPDFTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ class TCPDFTest extends \PHPUnit\Framework\TestCase
3333
*/
3434
public function testConstruct()
3535
{
36+
// TCPDF version 6.3.5 doesn't support PHP 5.3, fixed via https://github.com/tecnickcom/TCPDF/pull/197,
37+
// pending new release.
38+
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
39+
return;
40+
}
41+
3642
$file = __DIR__ . '/../../_files/tcpdf.pdf';
3743

3844
$phpWord = new PhpWord();

0 commit comments

Comments
 (0)