summaryrefslogtreecommitdiffstats
path: root/tests/labeled_axis_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-06-19 14:55:05 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-06-19 14:55:05 +0000
commit1cedba6d288b3b4ec1e48023725b2fdcaba78656 (patch)
treea15cea7b9865a670981bb9a35b65f231711226d8 /tests/labeled_axis_test.php
parentc3293f6d5ed83e2da339731542fd077b0b6ef7df (diff)
downloadzetacomponents-graph-1cedba6d288b3b4ec1e48023725b2fdcaba78656.zip
zetacomponents-graph-1cedba6d288b3b4ec1e48023725b2fdcaba78656.tar.gz
- Added tests for setting axis types with new axis names
Diffstat (limited to 'tests/labeled_axis_test.php')
-rw-r--r--tests/labeled_axis_test.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php
index dd27c3b..a31e1c7 100644
--- a/tests/labeled_axis_test.php
+++ b/tests/labeled_axis_test.php
@@ -552,6 +552,23 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
$chart->render( 500, 200 );
}
+
+ public function testSetNumericAxis()
+ {
+ $chart = ezcGraph::create( 'line' );
+ $chart->xAxis = new ezcGraphChartElementLabeledAxis();
+ $chart->yAxis = new ezcGraphChartElementLabeledAxis();
+
+ $this->assertTrue(
+ $chart->xAxis instanceof ezcGraphChartElementLabeledAxis,
+ 'X axis should be labeled.'
+ );
+
+ $this->assertTrue(
+ $chart->yAxis instanceof ezcGraphChartElementLabeledAxis,
+ 'Y axis should be labeled.'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud