summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php29
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();
OpenPOWER on IntegriCloud