diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:34:29 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:34:29 +0000 |
commit | fc7c6ba47ab918807bdf525906d8608d8aebe211 (patch) | |
tree | 95b3d716543a1c05bf3c63d2872f4321a3ffcc27 /tests/date_axis_test.php | |
parent | c6ae8ad4cfe4cab62e69c04e5598c7c2311af013 (diff) | |
download | zetacomponents-graph-fc7c6ba47ab918807bdf525906d8608d8aebe211.zip zetacomponents-graph-fc7c6ba47ab918807bdf525906d8608d8aebe211.tar.gz |
- Test for date parsing exception
Diffstat (limited to 'tests/date_axis_test.php')
-rw-r--r-- | tests/date_axis_test.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/date_axis_test.php b/tests/date_axis_test.php index 6be33ad..9fe5cf7 100644 --- a/tests/date_axis_test.php +++ b/tests/date_axis_test.php @@ -670,6 +670,24 @@ class ezcGraphDateAxisTest extends ezcGraphTestCase $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' ); } + + public function testDateParsingException() + { + try + { + $this->chart->data['some data'] = new ezcGraphArrayDataSet( array( + 'invalid time' => 7.78507871321, + ) ); + + $this->chart->render( 500, 200 ); + } + catch ( ezcGraphErrorParsingDateException $e ) + { + return; + } + + $this->fail( 'Expected ezcGraphErrorParsingDateException.' ); + } } ?> |