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 /tests/renderer_3d_test.php | |
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 'tests/renderer_3d_test.php')
-rw-r--r-- | tests/renderer_3d_test.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 5dde168..0d22d80 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -393,6 +393,12 @@ class ezcGraphRenderer3dTest extends ezcImageTestCase public function testRenderLabeledPieSegmentWithGleamAndShadowGD() { + if ( !ezcBaseFeatures::hasExtensionSupport( 'gd' ) && + ( ezcBaseFeatures::hasFunction( 'imagefttext' ) || ezcBaseFeatures::hasFunction( 'imagettftext' ) ) ) + { + $this->markTestSkipped( 'This test needs ext/gd with native ttf support or FreeType 2 support.' ); + } + $filename = $this->tempDir . __FUNCTION__ . '.png'; $chart = new ezcGraphPieChart(); |