diff options
Diffstat (limited to 'tests/driver_svg_test.php')
-rw-r--r-- | tests/driver_svg_test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/driver_svg_test.php b/tests/driver_svg_test.php index 5adb9d3..3543298 100644 --- a/tests/driver_svg_test.php +++ b/tests/driver_svg_test.php @@ -1827,6 +1827,9 @@ class ezcGraphSvgDriverTest extends ezcGraphTestCase public function testSvgWithDifferentLocales() { + // backup locale + $oldLocale = setlocale( LC_NUMERIC, null ); + setlocale( LC_NUMERIC, 'de_DE' ); $filename = $this->tempDir . __FUNCTION__ . '.svg'; @@ -1853,6 +1856,9 @@ class ezcGraphSvgDriverTest extends ezcGraphTestCase $chart->render( 500, 200, $filename ); + // restore locale + setlocale( LC_NUMERIC, $oldLocale ); + $this->compare( $filename, $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' |