From be4bf56454e879f962ddd4605b0ee0755e1cf598 Mon Sep 17 00:00:00 2001 From: Tobias Schlitt Date: Thu, 21 Jun 2007 15:10:30 +0000 Subject: - Fix locale reset. --- tests/driver_svg_test.php | 6 ++++++ 1 file changed, 6 insertions(+) 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' -- cgit v1.1