diff options
author | Tobias Schlitt <toby@php.net> | 2007-06-21 15:10:30 +0000 |
---|---|---|
committer | Tobias Schlitt <toby@php.net> | 2007-06-21 15:10:30 +0000 |
commit | be4bf56454e879f962ddd4605b0ee0755e1cf598 (patch) | |
tree | b5364cce58a4de2fcd4569a608778c3647a5d349 /tests | |
parent | 3b3960da560336f4810f0ed43dd6a86cf4d432f1 (diff) | |
download | zetacomponents-graph-be4bf56454e879f962ddd4605b0ee0755e1cf598.zip zetacomponents-graph-be4bf56454e879f962ddd4605b0ee0755e1cf598.tar.gz |
- Fix locale reset.
Diffstat (limited to 'tests')
-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' |