From 0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Mon, 7 Aug 2006 08:17:12 +0000 Subject: - Removed factory methods and replaced them with direct class instantiation. --- tests/line_test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/line_test.php') 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; -- cgit v1.1