summaryrefslogtreecommitdiffstats
path: root/tests/palette_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-15 09:37:47 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-15 09:37:47 +0000
commit04e2d9db41d47bc0364261a1cb30fe502409c339 (patch)
tree5d67ca1c0433d8521671fcf3364e2f4030f0fdad /tests/palette_test.php
parent58808385c0739092503c32c35e9365335040d5d0 (diff)
downloadzetacomponents-graph-04e2d9db41d47bc0364261a1cb30fe502409c339.zip
zetacomponents-graph-04e2d9db41d47bc0364261a1cb30fe502409c339.tar.gz
- Changed access to datasets from $chart['dataset'] to $chart->data['dataset']
Diffstat (limited to 'tests/palette_test.php')
-rw-r--r--tests/palette_test.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/palette_test.php b/tests/palette_test.php
index 7ec97bd..29c5b18 100644
--- a/tests/palette_test.php
+++ b/tests/palette_test.php
@@ -289,18 +289,18 @@ class ezcGraphPaletteTest extends ezcTestCase
public function testDataSetAutomaticColorization()
{
$chart = new ezcGraphLineChart();
- $chart['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
- $chart['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
$this->assertEquals(
ezcGraphColor::fromHex( '#3465A4' ),
- $chart['income']->color->default,
+ $chart->data['income']->color->default,
'Wrong automatic color set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#4E9A06' ),
- $chart['spending']->color->default,
+ $chart->data['spending']->color->default,
'Wrong automatic color set.'
);
}
@@ -308,8 +308,8 @@ class ezcGraphPaletteTest extends ezcTestCase
public function testChartBackground()
{
$chart = new ezcGraphLineChart();
- $chart['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
- $chart['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
$this->assertEquals(
ezcGraphColor::fromHex( '#EEEEEC' ),
@@ -321,8 +321,8 @@ class ezcGraphPaletteTest extends ezcTestCase
public function testChartElementBorder()
{
$chart = new ezcGraphLineChart();
- $chart['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
- $chart['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
$this->assertEquals(
ezcGraphColor::fromHex( '#000000FF' ),
@@ -334,8 +334,8 @@ class ezcGraphPaletteTest extends ezcTestCase
public function testChartElementBorderWidth()
{
$chart = new ezcGraphLineChart();
- $chart['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
- $chart['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
$this->assertEquals(
0,
@@ -347,8 +347,8 @@ class ezcGraphPaletteTest extends ezcTestCase
public function testChartElementAxisColor()
{
$chart = new ezcGraphLineChart();
- $chart['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
- $chart['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
+ $chart->data['income'] = new ezcGraphArrayDataSet( array( 2000 => 2345.2, 2456.3, 2567.4 ) );
+ $chart->data['spending'] = new ezcGraphArrayDataSet( array( 2000 => 2347.2, 2458.3, 2569.4 ) );
$this->assertEquals(
ezcGraphColor::fromHex( '#2E3436' ),
OpenPOWER on IntegriCloud