summaryrefslogtreecommitdiffstats
path: root/tests/renderer_3d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-11 08:41:25 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-11 08:41:25 +0000
commitb269dab61f162292ba4ad1f3cb400e182be23cee (patch)
tree0d70d5e446cd956427478ae04120383e7c7e0c08 /tests/renderer_3d_test.php
parentb2f80e187bc61f0e9510c5cff18f6bb8e8eac4e6 (diff)
downloadzetacomponents-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.php6
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();
OpenPOWER on IntegriCloud