Author: Kore Nordmann
Date: 2007-01-03 14:22:19 +0100 (Wed, 03 Jan 2007)
New Revision: 4459

Log:
- Readded accidentally removed test case

Modified:
   trunk/Graph/tests/dataset_test.php

Modified: trunk/Graph/tests/dataset_test.php
===================================================================
--- trunk/Graph/tests/dataset_test.php  2007-01-03 13:08:48 UTC (rev 4458)
+++ trunk/Graph/tests/dataset_test.php  2007-01-03 13:22:19 UTC (rev 4459)
@@ -255,6 +255,23 @@
         );
     }
 
+    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();

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to