diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 11:00:27 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-09-04 11:00:27 +0000 |
commit | c5c6b9c18a7b0ea73af9c6baa17542178138ce40 (patch) | |
tree | 1706de63bd55ae6ec33da5906ee86a9cea45d636 /tests | |
parent | 86d31a8b94e881ad6640bd8fd6c450f15fceb96a (diff) | |
download | zetacomponents-graph-c5c6b9c18a7b0ea73af9c6baa17542178138ce40.zip zetacomponents-graph-c5c6b9c18a7b0ea73af9c6baa17542178138ce40.tar.gz |
- Introduced chartPosition property
Diffstat (limited to 'tests')
-rw-r--r-- | tests/multiple_axis_test.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/multiple_axis_test.php b/tests/multiple_axis_test.php index d67231b..ab32db8 100644 --- a/tests/multiple_axis_test.php +++ b/tests/multiple_axis_test.php @@ -68,6 +68,35 @@ class ezcGraphMultipleAxisTest extends ezcTestCase $this->fail( 'Expected ezcBaseValueException.' ); } + public function testAxisPropertyChartPosition() + { + $options = new ezcGraphChartElementNumericAxis(); + + $this->assertEquals( + null, + $options->chartPosition, + 'Wrong default value for property chartPosition in class ezcGraphChartElementNumericAxis' + ); + + $options->chartPosition = .3; + $this->assertSame( + .3, + $options->chartPosition, + 'Setting property value did not work for property chartPosition in class ezcGraphChartElementNumericAxis' + ); + + try + { + $options->chartPosition = 15; + } + catch ( ezcBaseValueException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBaseValueException.' ); + } + public function testAxisContainerIterator() { $options = new ezcGraphLineChartOptions(); |