diff options
author | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 11:20:22 +0100 |
---|---|---|
committer | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 11:20:22 +0100 |
commit | 9cc895f7c21a380f0af248dfa5e4aa103b6c6046 (patch) | |
tree | 2c2efd6ef5e65eaa2dac0c66e7c082cf20d5eedc | |
parent | b783fe59122a4b11648407e895121a9efd8fa623 (diff) | |
download | zetacomponents-graph-9cc895f7c21a380f0af248dfa5e4aa103b6c6046.zip zetacomponents-graph-9cc895f7c21a380f0af248dfa5e4aa103b6c6046.tar.gz |
Enforce locale in tests generating SVG with numeric axis
-rw-r--r-- | tests/driver_svg_svg_font_test.php | 4 | ||||
-rw-r--r-- | tests/driver_svg_test.php | 2 | ||||
-rw-r--r-- | tests/radar_axis_test.php | 2 | ||||
-rw-r--r-- | tests/renderer_2d_legacy_test.php | 2 | ||||
-rw-r--r-- | tests/renderer_2d_test.php | 2 | ||||
-rw-r--r-- | tests/renderer_3d_test.php | 2 |
6 files changed, 12 insertions, 2 deletions
diff --git a/tests/driver_svg_svg_font_test.php b/tests/driver_svg_svg_font_test.php index ab3fdf3..b1d3329 100644 --- a/tests/driver_svg_svg_font_test.php +++ b/tests/driver_svg_svg_font_test.php @@ -63,8 +63,6 @@ class ezcGraphSvgSvgFontDriverTest extends ezcGraphTestCase $this->driver->options->height = 100; $this->driver->options->font->path = $this->basePath . 'font.svg'; - - $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); } protected function tearDown() @@ -74,6 +72,8 @@ class ezcGraphSvgSvgFontDriverTest extends ezcGraphTestCase { $this->removeTempDir(); } + + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); } public function testDrawTextBoxShortString() diff --git a/tests/driver_svg_test.php b/tests/driver_svg_test.php index d63593e..f02bda6 100644 --- a/tests/driver_svg_test.php +++ b/tests/driver_svg_test.php @@ -70,6 +70,8 @@ class ezcGraphSvgDriverTest extends ezcGraphTestCase { $this->removeTempDir(); } + + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); } public function testRenderToOutput() diff --git a/tests/radar_axis_test.php b/tests/radar_axis_test.php index 22c8b54..482bba9 100644 --- a/tests/radar_axis_test.php +++ b/tests/radar_axis_test.php @@ -49,6 +49,8 @@ class ezcGraphRadarChartAxisTest extends ezcGraphTestCase static $i = 0; $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; + + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); } protected function tearDown() diff --git a/tests/renderer_2d_legacy_test.php b/tests/renderer_2d_legacy_test.php index b15caf7..d0c8cc1 100644 --- a/tests/renderer_2d_legacy_test.php +++ b/tests/renderer_2d_legacy_test.php @@ -56,6 +56,8 @@ class ezcGraphRenderer2dLegacyTest extends ezcGraphTestCase $this->markTestSkipped( "This test requires PHP 5.1.3 or later." ); } + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); + $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index 29c26f3..7cb6385 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -56,6 +56,8 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase $this->markTestSkipped( "This test requires PHP 5.1.3 or later." ); } + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); + $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 6482ded..3d17194 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -53,6 +53,8 @@ class ezcGraphRenderer3dTest extends ezcGraphTestCase $this->markTestSkipped( "This test requires PHP 5.1.3 or later." ); } + $this->setLocale( LC_NUMERIC, 'en_US', 'en_US.UTF-8', 'en_US.UTF8', 'en', 'english', 'en_US@euro' ); + $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; } |