summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schlitt <toby@php.net>2007-06-21 15:10:30 +0000
committerTobias Schlitt <toby@php.net>2007-06-21 15:10:30 +0000
commitbe4bf56454e879f962ddd4605b0ee0755e1cf598 (patch)
treeb5364cce58a4de2fcd4569a608778c3647a5d349
parent3b3960da560336f4810f0ed43dd6a86cf4d432f1 (diff)
downloadzetacomponents-graph-be4bf56454e879f962ddd4605b0ee0755e1cf598.zip
zetacomponents-graph-be4bf56454e879f962ddd4605b0ee0755e1cf598.tar.gz
- Fix locale reset.
-rw-r--r--tests/driver_svg_test.php6
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'
OpenPOWER on IntegriCloud