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/pie_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/pie_test.php')
-rw-r--r-- | tests/pie_test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pie_test.php b/tests/pie_test.php index bb9a3a4..ce0b343 100644 --- a/tests/pie_test.php +++ b/tests/pie_test.php @@ -51,7 +51,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase public function testElementGenerationLegend() { - $chart = ezcGraph::create( 'Pie' ); + $chart = new ezcGraphPieChart(); $chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1); $chart->render( 500, 200 ); @@ -84,7 +84,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase public function testPieRenderPieSegments() { - $chart = ezcGraph::create( 'Pie' ); + $chart = new ezcGraphPieChart(); $chart['sample'] = array( 'Mozilla' => 4375, 'IE' => 345, @@ -163,7 +163,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase { $filename = $this->tempDir . __FUNCTION__ . '.png'; - $chart = ezcGraph::create( 'Pie' ); + $chart = new ezcGraphPieChart(); $chart['Skien'] = array( 'Norwegian' => 10, 'Dutch' => 3, 'German' => 2, 'French' => 2, 'Hindi' => 1, 'Taiwanese' => 1, 'Brazilian' => 1, 'Venezuelan' => 1, 'Japanese' => 1, 'Czech' => 1, 'Hungarian' => 1, 'Romanian' => 1 ); $chart['Skien']->highlight['Norwegian'] = true; @@ -184,7 +184,7 @@ class ezcGraphPieChartTest extends ezcImageTestCase { $filename = $this->tempDir . __FUNCTION__ . '.png'; - $chart = ezcGraph::create( 'Pie' ); + $chart = new ezcGraphPieChart(); $chart['Skien'] = array( 'Norwegian' => 10, 'Dutch' => 3, 'German' => 2, 'French' => 2, 'Hindi' => 1, 'Taiwanese' => 1, 'Brazilian' => 1, 'Venezuelan' => 1, 'Japanese' => 1, 'Czech' => 1, 'Hungarian' => 1, 'Romanian' => 1 ); $chart['Skien']->highlight['Norwegian'] = true; |