mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-21 15:49:26 +00:00
More Accurate Handling of Countries in validLocaleLanguages
This is a theoretical problem. Building FalseTrueArray only looks at languages, not countries. The only example we have is `pt` vs `pt_br`, and since True and False have the same translation for both locales, there is no problem. This PR will help it from becoming a problem in future if a new language/country combo is added.
This commit is contained in:
@@ -124,10 +124,23 @@ class CalculationCoverageTest extends TestCase
|
||||
$spreadsheet->disconnectWorksheets();
|
||||
}
|
||||
|
||||
protected static int $winMinPhpToSkip = 80300;
|
||||
|
||||
protected static int $winMaxPhpToSkip = 80499;
|
||||
|
||||
protected static string $winIndicator = 'WIN';
|
||||
|
||||
// separate process because it sets its own handler
|
||||
#[Attributes\RunInSeparateProcess]
|
||||
public function testExceptionHandler(): void
|
||||
{
|
||||
if (
|
||||
strtoupper(substr(PHP_OS, 0, 3)) === self::$winIndicator
|
||||
&& PHP_VERSION_ID >= self::$winMinPhpToSkip
|
||||
&& PHP_VERSION_ID <= self::$winMaxPhpToSkip
|
||||
) {
|
||||
self::markTestSkipped('Mysterious problem on Windows with Php8.3/4 only');
|
||||
}
|
||||
$this->expectException(CalcException::class);
|
||||
$this->expectExceptionMessage('hello');
|
||||
$handler = new ExceptionHandler();
|
||||
|
||||
Reference in New Issue
Block a user