diff options
Diffstat (limited to 'tests/driver_gd_test.php')
-rw-r--r-- | tests/driver_gd_test.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/driver_gd_test.php b/tests/driver_gd_test.php index f9df921..6280ddf 100644 --- a/tests/driver_gd_test.php +++ b/tests/driver_gd_test.php @@ -50,8 +50,10 @@ class ezcGraphGdDriverTest extends ezcTestImageCase return new PHPUnit_Framework_TestSuite( "ezcGraphGdDriverTest" ); } - protected function setUp() + public function setUp() { + parent::setUp(); + if ( !ezcBaseFeatures::hasExtensionSupport( 'gd' ) && ( ezcBaseFeatures::hasFunction( 'imagefttext' ) || ezcBaseFeatures::hasFunction( 'imagettftext' ) ) ) { @@ -69,7 +71,7 @@ class ezcGraphGdDriverTest extends ezcTestImageCase $this->driver->options->supersampling = 1; } - protected function tearDown() + public function tearDown() { unset( $this->driver ); if ( !$this->hasFailed() ) |