Skip to content

Commit b1c5c64

Browse files
committed
Tweak
1 parent a1ffd34 commit b1c5c64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/PhpSpreadsheetTests/Writer/Tcpdf/NoDieTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use PhpOffice\PhpSpreadsheet\Writer\Pdf\TcpdfNoDie;
88
use PHPUnit\Framework\Attributes;
99

10-
// Separate processes because of global defined names
11-
#[Attributes\RunTestsInSeparateProcesses]
1210
class NoDieTest extends \PHPUnit\Framework\TestCase
1311
{
1412
private Spreadsheet $spreadsheet;
@@ -23,6 +21,9 @@ protected function tearDown(): void
2321
unset($this->spreadsheet);
2422
}
2523

24+
// Separate processes because of global defined names
25+
#[Attributes\RunInSeparateProcess]
26+
#[Attributes\PreserveGlobalState(false)]
2627
public function testExceptionRatherThanDie(): void
2728
{
2829
$this->expectException(Exception::class);

0 commit comments

Comments
 (0)