diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | tests/driver_gd_test.php | 20 |
2 files changed, 17 insertions, 5 deletions
@@ -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'; |