diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-07-04 11:07:54 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-07-04 11:07:54 +0000 |
commit | e6a99f5e5a8c6e5ea43ebc0ca7d994f2d6c4a689 (patch) | |
tree | fd4280250e3bdd2562ef72e46eca8f715f0b6ff0 /tests/element_options_test.php | |
parent | adc30f0247f83feb0300b6e1c64dfead4e059c3e (diff) | |
download | zetacomponents-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.php | 26 |
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(); |