diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
commit | 0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch) | |
tree | 54b87304e021327b7d00022a892f5cbcab00546c /tests/labeled_axis_test.php | |
parent | b31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff) | |
download | zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz |
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'tests/labeled_axis_test.php')
-rw-r--r-- | tests/labeled_axis_test.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php index 0a92895..7de876b 100644 --- a/tests/labeled_axis_test.php +++ b/tests/labeled_axis_test.php @@ -43,7 +43,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testFactoryLabeledAxis() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $this->assertTrue( $chart->xAxis instanceof ezcGraphChartElementLabeledAxis @@ -52,7 +52,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testAutomaticLabelingSingle() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 20, 70, 12, 130 ); $chart->render( 500, 200 ); @@ -69,7 +69,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testAutomaticLabelingMultiple() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 ); $chart['sample2'] = array( 2002 => 1270, 1170, 1610, 1370 ); $chart->render( 500, 200 ); @@ -89,7 +89,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testAutomaticLabelingMultipleMixed() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 2001 => 1300, 2004 => 1012, 2006 => 1450 ); $chart['sample2'] = array( 2001 => 1270, 1170, 1610, 1370, 1559 ); $chart->render( 500, 200 ); @@ -110,7 +110,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testPositionLeft() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 ); $chart->xAxis->position = ezcGraph::LEFT; $chart->render( 500, 200 ); @@ -153,7 +153,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testPositionRight() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 ); $chart->xAxis->position = ezcGraph::RIGHT; $chart->render( 500, 200 ); @@ -196,7 +196,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testPositionTop() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 ); $chart->xAxis->position = ezcGraph::TOP; $chart->render( 500, 200 ); @@ -239,7 +239,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase public function testPositionBottom() { - $chart = ezcGraph::create( 'Line' ); + $chart = new ezcGraphLineChart(); $chart['sample'] = array( 2000 => 1045, 1300, 1012, 1450 ); $chart->xAxis->position = ezcGraph::BOTTOM; $chart->render( 500, 200 ); |