summaryrefslogtreecommitdiffstats
path: root/tests/labeled_axis_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-14 12:50:28 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-14 12:50:28 +0000
commit48155e33dd6901e3966d9b151d837bcbdc8e9968 (patch)
tree04fbae229bbf0a5bbea14d3e4da3f0bd976a4572 /tests/labeled_axis_test.php
parent21f7809f953a75b9e6214d0549a7f1941e3df7b9 (diff)
downloadzetacomponents-graph-48155e33dd6901e3966d9b151d837bcbdc8e9968.zip
zetacomponents-graph-48155e33dd6901e3966d9b151d837bcbdc8e9968.tar.gz
- Changed datsets to accept instances of ezcGraphDataSet only
- Added bar charts - Globally increase acceptable difference noise for created images in tests
Diffstat (limited to 'tests/labeled_axis_test.php')
-rw-r--r--tests/labeled_axis_test.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php
index 7de876b..4f4370e 100644
--- a/tests/labeled_axis_test.php
+++ b/tests/labeled_axis_test.php
@@ -53,7 +53,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testAutomaticLabelingSingle()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 20, 70, 12, 130 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 20, 70, 12, 130 ) );
$chart->render( 500, 200 );
$this->assertSame(
@@ -70,8 +70,8 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testAutomaticLabelingMultiple()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 );
- $chart['sample2'] = array( 2002 => 1270, 1170, 1610, 1370 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 1300, 1012, 1450 ) );
+ $chart['sample2'] = new ezcGraphArrayDataSet( array( 2002 => 1270, 1170, 1610, 1370 ) );
$chart->render( 500, 200 );
$this->assertSame(
@@ -90,8 +90,8 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testAutomaticLabelingMultipleMixed()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 2001 => 1300, 2004 => 1012, 2006 => 1450 );
- $chart['sample2'] = array( 2001 => 1270, 1170, 1610, 1370, 1559 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 2001 => 1300, 2004 => 1012, 2006 => 1450 ) );
+ $chart['sample2'] = new ezcGraphArrayDataSet( array( 2001 => 1270, 1170, 1610, 1370, 1559 ) );
$chart->render( 500, 200 );
$this->assertSame(
@@ -111,7 +111,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testPositionLeft()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 1300, 1012, 1450 ) );
$chart->xAxis->position = ezcGraph::LEFT;
$chart->render( 500, 200 );
@@ -154,7 +154,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testPositionRight()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 1300, 1012, 1450 ) );
$chart->xAxis->position = ezcGraph::RIGHT;
$chart->render( 500, 200 );
@@ -197,7 +197,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testPositionTop()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 1300, 1012, 1450 ) );
$chart->xAxis->position = ezcGraph::TOP;
$chart->render( 500, 200 );
@@ -240,7 +240,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
public function testPositionBottom()
{
$chart = new ezcGraphLineChart();
- $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 );
+ $chart['sample'] = new ezcGraphArrayDataSet( array( 2000 => 1045, 1300, 1012, 1450 ) );
$chart->xAxis->position = ezcGraph::BOTTOM;
$chart->render( 500, 200 );
OpenPOWER on IntegriCloud