summaryrefslogtreecommitdiffstats
path: root/tests/font_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/font_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/font_test.php')
-rw-r--r--tests/font_test.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/font_test.php b/tests/font_test.php
index 896027d..b9a5c16 100644
--- a/tests/font_test.php
+++ b/tests/font_test.php
@@ -187,6 +187,17 @@ class ezcGraphFontTest extends ezcTestCase
$options->name,
'Setting property value did not work for property name in class ezcGraphFontOptions'
);
+
+ try
+ {
+ $options->name = false;
+ }
+ catch( ezcBaseValueException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcBaseValueException.' );
}
public function testFontOptionsPropertyPath()
@@ -513,5 +524,21 @@ class ezcGraphFontTest extends ezcTestCase
$this->fail( 'Expected ezcGraphUnknownColorDefinitionException.' );
}
+
+ public function testPropertyNotFoundException()
+ {
+ $options = new ezcGraphFontOptions();
+
+ try
+ {
+ $options->unknown = 42;
+ }
+ catch( ezcBasePropertyNotFoundException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcBasePropertyNotFoundException.' );
+ }
}
?>
OpenPOWER on IntegriCloud