summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-03 13:22:19 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-03 13:22:19 +0000
commitd88ada317ea7222cc1e0d6d1ad390d2e1f573d2d (patch)
treeacccc91396c7f3a3ba6a9214179cae756783e07f /tests
parenta9af4abc646043de92c1b89708debd5583dadc8c (diff)
downloadzetacomponents-graph-d88ada317ea7222cc1e0d6d1ad390d2e1f573d2d.zip
zetacomponents-graph-d88ada317ea7222cc1e0d6d1ad390d2e1f573d2d.tar.gz
- Readded accidentally removed test case
Diffstat (limited to 'tests')
-rw-r--r--tests/dataset_test.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/dataset_test.php b/tests/dataset_test.php
index 850e3ab..ae80c87 100644
--- a/tests/dataset_test.php
+++ b/tests/dataset_test.php
@@ -255,6 +255,23 @@ class ezcGraphDataSetTest extends ezcTestCase
);
}
+ public function testDataSetSetSingleData()
+ {
+ $chart = new ezcGraphPieChart();
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['income'][2005] = 234.21;
+
+ $this->assertSame(
+ 234.21,
+ $chart->data['income'][2005]
+ );
+
+ $this->assertSame(
+ 2456.3,
+ $chart->data['income'][2001]
+ );
+ }
+
public function testIteratorToDataSet()
{
$chart = new ezcGraphPieChart();
OpenPOWER on IntegriCloud