diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-27 12:20:08 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-27 12:20:08 +0000 |
commit | 1d0cc07e07709c1bc59bbbf591c23b846d4fce57 (patch) | |
tree | 6fd25f9e61f166ea85df2a8ca8742e8e0488c1e9 /tests/boundings_test.php | |
parent | ea523b19b2f15e5c08541897a9685f94ff4ebbae (diff) | |
download | zetacomponents-graph-1d0cc07e07709c1bc59bbbf591c23b846d4fce57.zip zetacomponents-graph-1d0cc07e07709c1bc59bbbf591c23b846d4fce57.tar.gz |
- Added more tests
Diffstat (limited to 'tests/boundings_test.php')
-rw-r--r-- | tests/boundings_test.php | 16 |
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.' ); + } } ?> |