Skip to content

Commit 1921cbd

Browse files
committed
Mysterious Failure with PhpUnit 7/8/9
Corresponding to Php7.* and Php8.0. Did not seem to recognize runInSeparateProcess for test method.
1 parent 6536f5c commit 1921cbd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/PhpWordTests/Writer/PDF/TCPDFTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
/**
2727
* Test class for PhpOffice\PhpWord\Writer\PDF\TCPDF.
28+
*
29+
* @runTestsInSeparateProcesses
2830
*/
2931
class TCPDFTest extends \PHPUnit\Framework\TestCase
3032
{
@@ -82,7 +84,6 @@ public function testSectionPageBreak(): void
8284
self::assertStringContainsString('<div style="page: page2; page-break-before:always;">', $content);
8385
}
8486

85-
/** @runInSeparateProcess */
8687
public function testExceptionRatherThanDie(): void
8788
{
8889
$this->expectException(Exception::class);

tests/PhpWordTests/_files/tcpdf.pdf

Whitespace-only changes.

0 commit comments

Comments
 (0)