summaryrefslogtreecommitdiffstats
path: root/tests/pie_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-12 12:15:28 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-12 12:15:28 +0000
commit40b5444276af768209c8a6b0df633b150da86ac8 (patch)
treec7745ebc855b4ebd785fc069a1e323a79c19182b /tests/pie_test.php
parent6368fc5b861737d0620995bc930317d66e8c31c7 (diff)
downloadzetacomponents-graph-40b5444276af768209c8a6b0df633b150da86ac8.zip
zetacomponents-graph-40b5444276af768209c8a6b0df633b150da86ac8.tar.gz
- Fixed issue #10599: Pie chart label formattig callback only accepts callback
functions but neither static nor non static methods.
Diffstat (limited to 'tests/pie_test.php')
-rw-r--r--tests/pie_test.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/pie_test.php b/tests/pie_test.php
index 9aa5588..a4aa790 100644
--- a/tests/pie_test.php
+++ b/tests/pie_test.php
@@ -69,12 +69,11 @@ class ezcGraphPieChartTest extends ezcGraphTestCase
{
$options = new ezcGraphPieChartOptions();
-/* Checking for null values does not work with current ezcBaseOptions class
$this->assertSame(
null,
$options->labelCallback,
'Wrong default value for property labelCallback in class ezcGraphPieChartOptions'
- ); */
+ );
$options->labelCallback = 'printf';
$this->assertSame(
@@ -83,6 +82,13 @@ class ezcGraphPieChartTest extends ezcGraphTestCase
'Setting property value did not work for property labelCallback in class ezcGraphPieChartOptions'
);
+ $options->labelCallback = array( $this, __METHOD__ );
+ $this->assertSame(
+ array( $this, __METHOD__ ),
+ $options->labelCallback,
+ 'Setting property value did not work for property labelCallback in class ezcGraphPieChartOptions'
+ );
+
try
{
$options->labelCallback = 'undefined_function';
OpenPOWER on IntegriCloud