summaryrefslogtreecommitdiffstats
path: root/tests/element_options_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-26 09:55:24 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-26 09:55:24 +0000
commit02bed03a4e8d2acee8c5d5a2de09602164213e98 (patch)
treed2484101144d349061bd8ddeaae36b549fce084f /tests/element_options_test.php
parent76285842b1610e26e7d99dbc02e8edf90549861b (diff)
downloadzetacomponents-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.php29
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();
OpenPOWER on IntegriCloud