diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:50:39 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-11-27 11:50:39 +0000 |
commit | e5578da0740ae8fa7ff10207fbdd6aa38d7e4233 (patch) | |
tree | 555d8235109c87847a1d4b45bccf251c613be94a /src/driver | |
parent | 6c55988b401c47a5552e5aa3f11b459dde739306 (diff) | |
download | zetacomponents-graph-e5578da0740ae8fa7ff10207fbdd6aa38d7e4233.zip zetacomponents-graph-e5578da0740ae8fa7ff10207fbdd6aa38d7e4233.tar.gz |
- Test for ezcGraphGdDriverUnsupportedImageTypeException
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/gd.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php index 1662a1d..be2da37 100644 --- a/src/driver/gd.php +++ b/src/driver/gd.php @@ -1182,6 +1182,8 @@ class ezcGraphGdDriver extends ezcGraphDriver case IMG_JPEG: imagejpeg( $image, $file, $this->options->jpegQuality ); break; + default: + throw new ezcGraphGdDriverUnsupportedImageTypeException( $this->options->imageFormat ); } } } |