mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 20:46:26 +00:00
Update CsvNumberFormatLocaleTest.php
More future-proofing.
This commit is contained in:
@@ -60,6 +60,9 @@ class CsvNumberFormatLocaleTest extends TestCase
|
||||
if (!$this->localeAdjusted) {
|
||||
self::markTestSkipped('Unable to set locale for testing.');
|
||||
}
|
||||
$localeconv = localeconv();
|
||||
self::assertSame(',', $localeconv['decimal_point'], 'unexpected change to German decimal separator');
|
||||
self::assertSame('.', $localeconv['thousands_sep'], 'unexpected change to German thousands separator');
|
||||
|
||||
$spreadsheet = $this->csvReader->load($this->filename);
|
||||
$worksheet = $spreadsheet->getActiveSheet();
|
||||
@@ -101,6 +104,9 @@ class CsvNumberFormatLocaleTest extends TestCase
|
||||
if (!$this->localeAdjusted) {
|
||||
self::markTestSkipped('Unable to set locale for testing.');
|
||||
}
|
||||
$localeconv = localeconv();
|
||||
self::assertSame(',', $localeconv['decimal_point'], 'unexpected change to German decimal separator');
|
||||
self::assertSame('.', $localeconv['thousands_sep'], 'unexpected change to German thousands separator');
|
||||
|
||||
$this->csvReader->castFormattedNumberToNumeric(true);
|
||||
$spreadsheet = $this->csvReader->load($this->filename);
|
||||
|
||||
Reference in New Issue
Block a user