summaryrefslogtreecommitdiffstats
path: root/tests/element_options_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-07-04 11:07:54 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-07-04 11:07:54 +0000
commite6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689 (patch)
treefd4280250e3bdd2562ef72e46eca8f715f0b6ff0 /tests/element_options_test.php
parentadc30f0247f83feb0300b6e1c64dfead4e059c3e (diff)
downloadzetacomponents-graph-e6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689.zip
zetacomponents-graph-e6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689.tar.gz
- Implemented: #14294: Add option for axis label rotation
Diffstat (limited to 'tests/element_options_test.php')
-rw-r--r--tests/element_options_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/element_options_test.php b/tests/element_options_test.php
index b7f365f..7d8f234 100644
--- a/tests/element_options_test.php
+++ b/tests/element_options_test.php
@@ -1006,6 +1006,32 @@ class ezcGraphElementOptionsTest extends ezcTestImageCase
$this->fail( 'ezcBasevalueException expected.' );
}
+ public function testChartElementAxisPropertyLabelRotation()
+ {
+ $options = new ezcGraphChartElementNumericAxis();
+
+ $this->assertSame(
+ 0.,
+ $options->labelRotation,
+ 'Wrong default value for property labelRotation in class ezcGraphChartElementNumericAxis'
+ );
+
+ $options->labelRotation = 450;
+ $this->assertSame(
+ 90.,
+ $options->labelRotation,
+ 'Setting property value did not work for property labelRotation in class ezcGraphChartElementNumericAxis'
+ );
+
+ try
+ {
+ $options->labelRotation = 'foo';
+ $this->fail( 'ezcBasevalueException expected.' );
+ }
+ catch ( ezcBasevalueException $e )
+ { /* Expected */ }
+ }
+
public function testChartElementTextPropertyMaxHeight()
{
$options = new ezcGraphChartElementText();
OpenPOWER on IntegriCloud