diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-19 14:55:05 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-19 14:55:05 +0000 |
commit | 1cedba6d288b3b4ec1e48023725b2fdcaba78656 (patch) | |
tree | a15cea7b9865a670981bb9a35b65f231711226d8 /tests/labeled_axis_test.php | |
parent | c3293f6d5ed83e2da339731542fd077b0b6ef7df (diff) | |
download | zetacomponents-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.php | 17 |
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.' + ); + } } ?> |