summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-04-13 14:10:07 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-04-13 14:10:07 +0000
commit8637b8b5ef26a8c7c2203e485784bfecd7e269b5 (patch)
treec9b5f2367816b008b2e973ab3dd4106a5027e2cd
parent64efa3602ec982a051f8209aa9baa436007d8dae (diff)
downloadzetacomponents-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--ChangeLog2
-rw-r--r--tests/driver_gd_test.php20
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';
OpenPOWER on IntegriCloud