summaryrefslogtreecommitdiffstats
path: root/tests/font_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/font_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/font_test.php')
-rw-r--r--tests/font_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/font_test.php b/tests/font_test.php
index 8d6795c..9a06edd 100644
--- a/tests/font_test.php
+++ b/tests/font_test.php
@@ -46,7 +46,7 @@ class ezcGraphFontTest extends ezcTestCase
public function testSetGeneralFont()
{
- $chart = ezcGraph::create( 'Pie' );
+ $chart = new ezcGraphPieChart();
$chart->options->font = $this->basePath . 'font.ttf';
$this->assertTrue(
@@ -69,7 +69,7 @@ class ezcGraphFontTest extends ezcTestCase
public function testGetGeneralFontForElement()
{
- $chart = ezcGraph::create( 'Pie' );
+ $chart = new ezcGraphPieChart();
$chart->options->font = $this->basePath . 'font.ttf';
$this->assertTrue(
@@ -86,7 +86,7 @@ class ezcGraphFontTest extends ezcTestCase
public function testSetFontForElement()
{
- $chart = ezcGraph::create( 'Line' );
+ $chart = new ezcGraphLineChart();
$chart->options->font = $this->basePath . 'font.ttf';
$chart->legend->font = $this->basePath . 'font2.ttf';
@@ -116,7 +116,7 @@ class ezcGraphFontTest extends ezcTestCase
public function testSetFontForElementWithRendering()
{
- $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->options->font = $this->basePath . 'font.ttf';
$chart->legend->font = $this->basePath . 'font2.ttf';
OpenPOWER on IntegriCloud