From b269dab61f162292ba4ad1f3cb400e182be23cee Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Mon, 11 Sep 2006 08:41:25 +0000 Subject: - Skip tests if extension or extension feature is not available --- tests/chart_test.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/chart_test.php') 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(); -- cgit v1.1