summaryrefslogtreecommitdiffstats
path: root/tests/boundings_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-27 12:20:08 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-27 12:20:08 +0000
commit1d0cc07e07709c1bc59bbbf591c23b846d4fce57 (patch)
tree6fd25f9e61f166ea85df2a8ca8742e8e0488c1e9 /tests/boundings_test.php
parentea523b19b2f15e5c08541897a9685f94ff4ebbae (diff)
downloadzetacomponents-graph-1d0cc07e07709c1bc59bbbf591c23b846d4fce57.zip
zetacomponents-graph-1d0cc07e07709c1bc59bbbf591c23b846d4fce57.tar.gz
- Added more tests
Diffstat (limited to 'tests/boundings_test.php')
-rw-r--r--tests/boundings_test.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/boundings_test.php b/tests/boundings_test.php
index 3d4c372..904225c 100644
--- a/tests/boundings_test.php
+++ b/tests/boundings_test.php
@@ -49,6 +49,22 @@ class ezcGraphBoundingsTest extends ezcTestCase
$this->assertEquals( $boundings->x1, 10 );
$this->assertEquals( $boundings->y1, 11 );
}
+
+ public function testUnknownBoundingsProperty()
+ {
+ $boundings = new ezcGraphBoundings( 10, 11, 0, 1 );
+
+ try
+ {
+ $boundings->unknown;
+ }
+ catch( ezcBasePropertyNotFoundException $e )
+ {
+ return true;
+ }
+
+ $this->fail( 'Expected ezcBasePropertyNotFoundException.' );
+ }
}
?>
OpenPOWER on IntegriCloud