summaryrefslogtreecommitdiffstats
path: root/tests/driver_options_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
commit4ed2de1f6271653a6f965237a245d0d4c2535aab (patch)
treef5add06d6b7d81e687e978f334d01e4ebc9f0ad3 /tests/driver_options_test.php
parent1658235bc062aed25270711694430deba7c31c77 (diff)
downloadzetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.zip
zetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.tar.gz
- Added more tests and fixed some minor setter and getter bugs
Diffstat (limited to 'tests/driver_options_test.php')
-rw-r--r--tests/driver_options_test.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/driver_options_test.php b/tests/driver_options_test.php
index d9f35ac..e2dcbd8 100644
--- a/tests/driver_options_test.php
+++ b/tests/driver_options_test.php
@@ -77,6 +77,24 @@ class ezcGraphDriverOptionsTest extends ezcImageTestCase
);
}
+ public function testDriverOptionsPropertyLineSpacing()
+ {
+ $options = new ezcGraphSvgDriverOptions();
+
+ $this->assertSame(
+ .1,
+ $options->lineSpacing,
+ 'Wrong default value for property lineSpacing in class ezcGraphSvgDriverOptions'
+ );
+
+ $options->lineSpacing = .2;
+ $this->assertSame(
+ .2,
+ $options->lineSpacing,
+ 'Setting property value did not work for property lineSpacing in class ezcGraphSvgDriverOptions'
+ );
+ }
+
public function testDriverOptionsPropertyFont()
{
$options = new ezcGraphSvgDriverOptions();
@@ -108,5 +126,21 @@ class ezcGraphDriverOptionsTest extends ezcImageTestCase
$this->fail( 'Expected ezcBaseValueException.' );
}
+
+ public function testPropertyNotFoundException()
+ {
+ $options = new ezcGraphSvgDriverOptions();
+
+ try
+ {
+ $options->unknown = 42;
+ }
+ catch( ezcBasePropertyNotFoundException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcBasePropertyNotFoundException.' );
+ }
}
?>
OpenPOWER on IntegriCloud