summaryrefslogtreecommitdiffstats
path: root/tests/text_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/text_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/text_test.php')
-rw-r--r--tests/text_test.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/text_test.php b/tests/text_test.php
index d2bfb34..8054c13 100644
--- a/tests/text_test.php
+++ b/tests/text_test.php
@@ -44,7 +44,7 @@ class ezcGraphTextTest extends ezcTestCase
public function testRenderTextTop()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
$chart->title = 'Title of a chart';
@@ -70,7 +70,7 @@ class ezcGraphTextTest extends ezcTestCase
public function testRenderTextBottom()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
$chart->title = 'Title of a chart';
$chart->title->position = ezcGraph::BOTTOM;
@@ -97,7 +97,7 @@ class ezcGraphTextTest extends ezcTestCase
public function testRenderTextTopMargin()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array( 'foo' => 1, 'bar' => 10 ) );
$chart->title = 'Title of a chart';
$chart->title->position = ezcGraph::TOP;
OpenPOWER on IntegriCloud