Eliminate Unneeded Separate Process Tests

The tests stay; they just no longer run in separate processes. I think that only 2 tests still require separate processes - Helper/SampleTest and Tcpdf/NoDieTest. Aside from a new internal method in IOFactory, all the changes here are to test members.
This commit is contained in:
oleibman
2025-12-07 23:15:01 -08:00
parent f1ab77698e
commit 2c8177a319
19 changed files with 110 additions and 85 deletions
@@ -5,11 +5,8 @@ declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Shared;
use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
use PHPUnit\Framework\Attributes;
use PHPUnit\Framework\TestCase;
// separate processes due to setLocale
#[Attributes\RunTestsInSeparateProcesses]
class StringHelperLocaleTest extends TestCase
{
/**
@@ -20,6 +17,7 @@ class StringHelperLocaleTest extends TestCase
protected function setUp(): void
{
$this->currentLocale = setlocale(LC_ALL, '0');
StringHelper::setCurrencyCode(null);
}
protected function tearDown(): void