summaryrefslogtreecommitdiffstats
path: root/tests/chart_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/chart_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/chart_test.php')
-rw-r--r--tests/chart_test.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/chart_test.php b/tests/chart_test.php
index 4ebf8ae..4baef53 100644
--- a/tests/chart_test.php
+++ b/tests/chart_test.php
@@ -167,6 +167,12 @@ class ezcGraphChartTest extends ezcTestCase
public function testSetDriver()
{
+ 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.' );
+ }
+
$pieChart = new ezcGraphPieChart();
$driver = $pieChart->driver = new ezcGraphGdDriver();
OpenPOWER on IntegriCloud