diff options
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r-- | tests/renderer_2d_test.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index 892faa8..16d8508 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -2191,6 +2191,35 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase $this->fail( 'Expected ezcBaseValueException.' ); } + public function testRendererOptionsPropertySyncAxisFonts() + { + $options = new ezcGraphRendererOptions(); + + $this->assertSame( + true, + $options->syncAxisFonts, + 'Wrong default value for property syncAxisFonts in class ezcGraphRendererOptions' + ); + + $options->syncAxisFonts = false; + $this->assertSame( + false, + $options->syncAxisFonts, + 'Setting property value did not work for property syncAxisFonts in class ezcGraphRendererOptions' + ); + + try + { + $options->syncAxisFonts = 42; + } + catch ( ezcBaseValueException $e ) + { + return true; + } + + $this->fail( 'Expected ezcBaseValueException.' ); + } + public function testRendererOptionsPropertySymbolSize() { $options = new ezcGraphRendererOptions(); |