diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-27 09:18:13 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-27 09:18:13 +0000 |
commit | d6bae028524a0fc548080d7b8ae1d8fa38102248 (patch) | |
tree | df0afe090b02444f05cc092aa53cd9b433e22c49 /tests/text_test.php | |
parent | 50e3d65302d7515cee6b2a677d16bc59d4cf4c8a (diff) | |
download | zetacomponents-graph-d6bae028524a0fc548080d7b8ae1d8fa38102248.zip zetacomponents-graph-d6bae028524a0fc548080d7b8ae1d8fa38102248.tar.gz |
- Applied API change for accessing datasets to be able to distinguish easier
between chart elements and datasets
# Changes the way datasets are accessed for charts
# Old:
# $chart->dataset = array( ... );
# New:
# $chart['dataset'] = array( ... );
Diffstat (limited to 'tests/text_test.php')
-rw-r--r-- | tests/text_test.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/text_test.php b/tests/text_test.php index 8cb6f36..b2734a2 100644 --- a/tests/text_test.php +++ b/tests/text_test.php @@ -44,7 +44,7 @@ class ezcGraphTextTest extends ezcTestCase public function testRenderTextTop() { $chart = ezcGraph::create( 'Line' ); - $chart->sample = array( 'foo' => 1, 'bar' => 10 ); + $chart['sample'] = array( 'foo' => 1, 'bar' => 10 ); $chart->title = 'Title of a chart'; @@ -83,7 +83,7 @@ class ezcGraphTextTest extends ezcTestCase public function testRenderTextBottom() { $chart = ezcGraph::create( 'Line' ); - $chart->sample = array( 'foo' => 1, 'bar' => 10 ); + $chart['sample'] = array( 'foo' => 1, 'bar' => 10 ); $chart->title = 'Title of a chart'; $chart->title->position = ezcGraph::BOTTOM; @@ -112,7 +112,7 @@ class ezcGraphTextTest extends ezcTestCase public function testRenderTextTopMargin() { $chart = ezcGraph::create( 'Line' ); - $chart->sample = array( 'foo' => 1, 'bar' => 10 ); + $chart['sample'] = array( 'foo' => 1, 'bar' => 10 ); $chart->title = 'Title of a chart'; $chart->title->position = ezcGraph::TOP; |