Skip to content

Commit 9ee3349

Browse files
committed
Try preserveGlobalState
Not sure why this should be needed for Phpunit 9 but not 10. No harm specifying it in 10.
1 parent 1921cbd commit 9ee3349

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/PhpWordTests/Writer/PDF/TCPDFTest.php

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

2626
/**
2727
* Test class for PhpOffice\PhpWord\Writer\PDF\TCPDF.
28-
*
29-
* @runTestsInSeparateProcesses
3028
*/
3129
class TCPDFTest extends \PHPUnit\Framework\TestCase
3230
{
@@ -84,6 +82,11 @@ public function testSectionPageBreak(): void
8482
self::assertStringContainsString('<div style="page: page2; page-break-before:always;">', $content);
8583
}
8684

85+
/**
86+
* @runInSeparateProcess
87+
*
88+
* @preserveGlobalState disabled
89+
*/
8790
public function testExceptionRatherThanDie(): void
8891
{
8992
$this->expectException(Exception::class);

0 commit comments

Comments
 (0)