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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/font_test.php b/tests/font_test.php
index 9a06edd..f9faa2c 100644
--- a/tests/font_test.php
+++ b/tests/font_test.php
@@ -117,7 +117,7 @@ class ezcGraphFontTest extends ezcTestCase
public function testSetFontForElementWithRendering()
{
$chart = new ezcGraphLineChart();
- $chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1);
+ $chart['sampleData'] = new ezcGraphArrayDataSet( 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';
$chart->render( 500, 200 );
OpenPOWER on IntegriCloud