mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-09 13:26:33 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user