diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-13 14:10:07 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-13 14:10:07 +0000 |
commit | 8637b8b5ef26a8c7c2203e485784bfecd7e269b5 (patch) | |
tree | c9b5f2367816b008b2e973ab3dd4106a5027e2cd | |
parent | 64efa3602ec982a051f8209aa9baa436007d8dae (diff) | |
download | zetacomponents-graph-8637b8b5ef26a8c7c2203e485784bfecd7e269b5.zip zetacomponents-graph-8637b8b5ef26a8c7c2203e485784bfecd7e269b5.tar.gz |
- Fixed issue #10606: Call to undefined function imagePsLoadFont() in gd tests
when no t1lib is available
-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'; |