diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 09:55:24 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 09:55:24 +0000 |
commit | 02bed03a4e8d2acee8c5d5a2de09602164213e98 (patch) | |
tree | d2484101144d349061bd8ddeaae36b549fce084f /tests/element_options_test.php | |
parent | 76285842b1610e26e7d99dbc02e8edf90549861b (diff) | |
download | zetacomponents-graph-02bed03a4e8d2acee8c5d5a2de09602164213e98.zip zetacomponents-graph-02bed03a4e8d2acee8c5d5a2de09602164213e98.tar.gz |
- Fixes issue #10675: Arrow heads on axis too small
Diffstat (limited to 'tests/element_options_test.php')
-rw-r--r-- | tests/element_options_test.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/element_options_test.php b/tests/element_options_test.php index b2f4a23..a9013ea 100644 --- a/tests/element_options_test.php +++ b/tests/element_options_test.php @@ -817,6 +817,35 @@ class ezcGraphElementOptionsTest extends ezcImageTestCase $this->fail( 'Expected ezcBaseValueException.' ); } + public function testChartElementAxisPropertyMinArrowHeadSize() + { + $options = new ezcGraphChartElementNumericAxis(); + + $this->assertSame( + 4, + $options->minArrowHeadSize, + 'Wrong default value for property minArrowHeadSize in class ezcGraphChartElementNumericAxis' + ); + + $options->minArrowHeadSize = 10; + $this->assertSame( + 10, + $options->minArrowHeadSize, + 'Setting property value did not work for property minArrowHeadSize in class ezcGraphChartElementNumericAxis' + ); + + try + { + $options->labelMargin = false; + } + catch ( ezcBaseValueException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBaseValueException.' ); + } + public function testChartElementAxisPropertyMaxArrowHeadSize() { $options = new ezcGraphChartElementNumericAxis(); |