diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-03 10:24:05 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-03 10:24:05 +0000 |
commit | 14aef064149236b6190859b165bb431a4a4802b4 (patch) | |
tree | 8c122ddc14967c76a5e8fcca8abc355dd2e53170 /tests/date_axis_test.php | |
parent | 3d159bca6c8d9f22203edabd416d30004dca02c5 (diff) | |
download | zetacomponents-graph-14aef064149236b6190859b165bb431a4a4802b4.zip zetacomponents-graph-14aef064149236b6190859b165bb431a4a4802b4.tar.gz |
- Fixed: Bug #9926 (Float values with date axis result in date parsing
exception)
Diffstat (limited to 'tests/date_axis_test.php')
-rw-r--r-- | tests/date_axis_test.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/date_axis_test.php b/tests/date_axis_test.php index dde9e86..2464090 100644 --- a/tests/date_axis_test.php +++ b/tests/date_axis_test.php @@ -481,6 +481,26 @@ class ezcGraphDateAxisTest extends ezcGraphTestCase $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' ); } + + public function testFloatDataSetKeys() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $this->chart->data['some data'] = new ezcGraphArrayDataSet( array( + '231.1' => 12, + '651.2' => 324, + '3241.3' => 238, + '3292.4' => 123, + ) ); + $this->chart->data['some data']->symbol = ezcGraph::DIAMOND; + + $this->chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } } ?> |