summaryrefslogtreecommitdiffstats
path: root/tests/font_test.php
diff options
context:
space:
mode:
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