diff options
author | Sebastian Bergmann <sb@sebastian-bergmann.de> | 2007-07-02 10:02:22 +0000 |
---|---|---|
committer | Sebastian Bergmann <sb@sebastian-bergmann.de> | 2007-07-02 10:02:22 +0000 |
commit | 31fd34c1c1f5d03c9eddac0683c45df8c06db6e0 (patch) | |
tree | 2b7a14813636000127c7a71c51727f8235247bef /tests/driver_svg_test.php | |
parent | 7af2cca9ba5b3ab1e71bad2fd52b902ae111265d (diff) | |
download | zetacomponents-graph-31fd34c1c1f5d03c9eddac0683c45df8c06db6e0.zip zetacomponents-graph-31fd34c1c1f5d03c9eddac0683c45df8c06db6e0.tar.gz |
- PHPUnit 3.1 Migration
- Migrate PHPUnit_Framework_Assert::getAttribute() to
PHPUnit_Framework_Assert::readAttribute().
- Use PHPUnit_Framework_TestCase::setLocale().
- Populate code coverage whitelist from autoload arrays.
- Remove ezcTestRunner::addFileToFilter().
# PHPUnit 3.1 is now required.
Diffstat (limited to 'tests/driver_svg_test.php')
-rw-r--r-- | tests/driver_svg_test.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/driver_svg_test.php b/tests/driver_svg_test.php index 3543298..ec2ae31 100644 --- a/tests/driver_svg_test.php +++ b/tests/driver_svg_test.php @@ -1827,10 +1827,7 @@ class ezcGraphSvgDriverTest extends ezcGraphTestCase public function testSvgWithDifferentLocales() { - // backup locale - $oldLocale = setlocale( LC_NUMERIC, null ); - - setlocale( LC_NUMERIC, 'de_DE' ); + $this->setLocale( LC_NUMERIC, 'de_DE' ); $filename = $this->tempDir . __FUNCTION__ . '.svg'; @@ -1856,9 +1853,6 @@ class ezcGraphSvgDriverTest extends ezcGraphTestCase $chart->render( 500, 200, $filename ); - // restore locale - setlocale( LC_NUMERIC, $oldLocale ); - $this->compare( $filename, $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' |