summaryrefslogtreecommitdiffstats
path: root/tests/line_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-07 08:17:12 +0000
commit0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch)
tree54b87304e021327b7d00022a892f5cbcab00546c /tests/line_test.php
parentb31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff)
downloadzetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip
zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'tests/line_test.php')
-rw-r--r--tests/line_test.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/line_test.php b/tests/line_test.php
index 0e8dd3a..5363db0 100644
--- a/tests/line_test.php
+++ b/tests/line_test.php
@@ -58,7 +58,7 @@ class ezcGraphLineChartTest extends ezcTestCase
public function testElementGenerationLegend()
{
- $chart = ezcGraph::create( 'Line' );
+ $chart = new ezcGraphLineChart();
$this->addSampleData( $chart );
$chart->render( 500, 200 );
@@ -97,7 +97,7 @@ class ezcGraphLineChartTest extends ezcTestCase
public function testRenderChartLines()
{
- $chart = ezcGraph::create( 'Line' );
+ $chart = new ezcGraphLineChart();
$chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1 );
$chart['sampleData']->color = '#CC0000';
$chart['sampleData']->symbol = ezcGraph::DIAMOND;
@@ -184,9 +184,9 @@ class ezcGraphLineChartTest extends ezcTestCase
public function testRenderChartFilledLines()
{
- $chart = ezcGraph::create( 'Line' );
+ $chart = new ezcGraphLineChart();
$chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => -46, 'sample 4' => 120, 'sample 5' => 100 );
- $chart->palette = 'Black';
+ $chart->palette = new ezcGraphPaletteBlack();
$chart->options->fillLines = 100;
$mockedRenderer = $this->getMock( 'ezcGraphRenderer2d', array(
@@ -243,8 +243,8 @@ class ezcGraphLineChartTest extends ezcTestCase
public function testRenderChartSymbols()
{
- $chart = ezcGraph::create( 'Line' );
- $chart->palette = 'Black';
+ $chart = new ezcGraphLineChart();
+ $chart->palette = new ezcGraphPaletteBlack();
$chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1);
$chart['sampleData']->symbol = ezcGraph::DIAMOND;
$chart['sampleData']->symbol['sample 3'] = ezcGraph::CIRCLE;
OpenPOWER on IntegriCloud