diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-11 08:41:25 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-11 08:41:25 +0000 |
commit | b269dab61f162292ba4ad1f3cb400e182be23cee (patch) | |
tree | 0d70d5e446cd956427478ae04120383e7c7e0c08 /src/driver | |
parent | b2f80e187bc61f0e9510c5cff18f6bb8e8eac4e6 (diff) | |
download | zetacomponents-graph-b269dab61f162292ba4ad1f3cb400e182be23cee.zip zetacomponents-graph-b269dab61f162292ba4ad1f3cb400e182be23cee.tar.gz |
- Skip tests if extension or extension feature is not available
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/gd.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php index 6d066e6..bf9249b 100644 --- a/src/driver/gd.php +++ b/src/driver/gd.php @@ -234,7 +234,7 @@ class ezcGraphGdDriver extends ezcGraphDriver case ezcGraph::TTF_FONT: switch ( true ) { - case function_exists( 'imageftbbox' ) && !$this->options->forceNativeTTF: + case ezcBaseFeatures::hasFunction( 'imageftbbox' ) && !$this->options->forceNativeTTF: $boundings = imageFtBBox( $size, 0, $font->path, $text ); return new ezcGraphBoundings( $boundings[0], @@ -242,7 +242,7 @@ class ezcGraphGdDriver extends ezcGraphDriver $boundings[4], $boundings[5] ); - case function_exists( 'imagettfbbox' ): + case ezcBaseFeatures::hasFunction( 'imagettfbbox' ): $boundings = imageTtfBBox( $size, 0, $font->path, $text ); return new ezcGraphBoundings( $boundings[0], @@ -285,7 +285,7 @@ class ezcGraphGdDriver extends ezcGraphDriver case ezcGraph::TTF_FONT: switch ( true ) { - case function_exists( 'imagefttext' ) && !$this->options->forceNativeTTF: + case ezcBaseFeatures::hasFunction( 'imagefttext' ) && !$this->options->forceNativeTTF: imageFtText( $image, $size, @@ -297,7 +297,7 @@ class ezcGraphGdDriver extends ezcGraphDriver $text ); break; - case function_exists( 'imagettftext' ): + case ezcBaseFeatures::hasFunction( 'imagettftext' ): imageTtfText( $image, $size, |