From 8637b8b5ef26a8c7c2203e485784bfecd7e269b5 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Fri, 13 Apr 2007 14:10:07 +0000 Subject: - Fixed issue #10606: Call to undefined function imagePsLoadFont() in gd tests when no t1lib is available --- ChangeLog | 2 ++ tests/driver_gd_test.php | 20 +++++++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 188bedb..5c59fcf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,8 @@ - Added feature #10470: Add support for format callback functions on all axis - Added feature #10017: Plot whole months on date axis respecting their different length +- Fixed issue #10606: Call to undefined function imagePsLoadFont() in gd tests + when no t1lib is available 1.0 - Monday 18 December 2006 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/driver_gd_test.php b/tests/driver_gd_test.php index 8891d01..deb9487 100644 --- a/tests/driver_gd_test.php +++ b/tests/driver_gd_test.php @@ -754,6 +754,11 @@ class ezcGraphGdDriverTest extends ezcImageTestCase public function testDrawTextBoxShortPSStringRotated10Degrees() { + if ( !ezcBaseFeatures::hasFunction( 'imagepstext' ) ) + { + $this->markTestSkipped( 'This test needs Type 1 font support within your gd extension.' ); + } + $filename = $this->tempDir . __FUNCTION__ . '.png'; $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' ); @@ -840,6 +845,11 @@ class ezcGraphGdDriverTest extends ezcImageTestCase public function testDrawTextBoxShortPSStringRotated45Degrees() { + if ( !ezcBaseFeatures::hasFunction( 'imagepstext' ) ) + { + $this->markTestSkipped( 'This test needs Type 1 font support within your gd extension.' ); + } + $filename = $this->tempDir . __FUNCTION__ . '.png'; $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' ); @@ -926,6 +936,11 @@ class ezcGraphGdDriverTest extends ezcImageTestCase public function testDrawTextBoxShortPSStringRotated340Degrees() { + if ( !ezcBaseFeatures::hasFunction( 'imagepstext' ) ) + { + $this->markTestSkipped( 'This test needs Type 1 font support within your gd extension.' ); + } + $filename = $this->tempDir . __FUNCTION__ . '.png'; $this->driver->options->font->border = ezcGraphColor::fromHex( '#555555' ); @@ -1774,11 +1789,6 @@ class ezcGraphGdDriverTest extends ezcImageTestCase $this->markTestSkipped( 'This test needs Type 1 font support within your gd extension.' ); } - if ( !ezcBaseFeatures::hasFunction( 'imagepstext' ) ) - { - $this->markTestSkipped( 'This test needs Type 1 font support within your gd extension.' ); - } - $filename = $this->tempDir . __FUNCTION__ . '.png'; $this->driver->options->font->path = $this->basePath . 'ps_font.pfb'; -- cgit v1.1