summaryrefslogtreecommitdiffstats
path: root/tests/date_axis_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-03 10:24:05 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-03 10:24:05 +0000
commit14aef064149236b6190859b165bb431a4a4802b4 (patch)
tree8c122ddc14967c76a5e8fcca8abc355dd2e53170 /tests/date_axis_test.php
parent3d159bca6c8d9f22203edabd416d30004dca02c5 (diff)
downloadzetacomponents-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.php20
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'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud