diff options
-rw-r--r-- | tests/axis_centered_renderer_test.php | 4 | ||||
-rw-r--r-- | tests/axis_exact_renderer_test.php | 4 | ||||
-rw-r--r-- | tests/line_test.php | 4 | ||||
-rw-r--r-- | tests/pie_test.php | 4 | ||||
-rw-r--r-- | tests/renderer_2d_test.php | 4 | ||||
-rw-r--r-- | tests/renderer_3d_test.php | 4 | ||||
-rw-r--r-- | tests/text_test.php | 4 |
7 files changed, 28 insertions, 0 deletions
diff --git a/tests/axis_centered_renderer_test.php b/tests/axis_centered_renderer_test.php index 170e11c..d2c1fba 100644 --- a/tests/axis_centered_renderer_test.php +++ b/tests/axis_centered_renderer_test.php @@ -34,6 +34,10 @@ class ezcGraphAxisCenteredRendererTest extends ezcTestCase */ public function setUp() { + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } } /** diff --git a/tests/axis_exact_renderer_test.php b/tests/axis_exact_renderer_test.php index 34f08f2..a4ade6d 100644 --- a/tests/axis_exact_renderer_test.php +++ b/tests/axis_exact_renderer_test.php @@ -34,6 +34,10 @@ class ezcGraphAxisExactRendererTest extends ezcTestCase */ public function setUp() { + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } } /** diff --git a/tests/line_test.php b/tests/line_test.php index f8424eb..e0a03d7 100644 --- a/tests/line_test.php +++ b/tests/line_test.php @@ -35,6 +35,10 @@ class ezcGraphLineChartTest extends ezcTestCase public function setUp() { static $i = 0; + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } $this->tempDir = $this->createTempDir( 'ezcGraphGdDriverTest' . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; } diff --git a/tests/pie_test.php b/tests/pie_test.php index 9e5dea8..bbea502 100644 --- a/tests/pie_test.php +++ b/tests/pie_test.php @@ -35,6 +35,10 @@ class ezcGraphPieChartTest extends ezcImageTestCase public function setUp() { static $i = 0; + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; } diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index 0b3a8e0..961302d 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -39,6 +39,10 @@ class ezcGraphRenderer2dTest extends ezcTestCase public function setUp() { static $i = 0; + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index fadb98a..908026a 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -35,6 +35,10 @@ class ezcGraphRenderer3dTest extends ezcTestCase public function setUp() { static $i = 0; + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; } diff --git a/tests/text_test.php b/tests/text_test.php index 8054c13..1e2125c 100644 --- a/tests/text_test.php +++ b/tests/text_test.php @@ -30,6 +30,10 @@ class ezcGraphTextTest extends ezcTestCase */ public function setUp() { + if ( version_compare( phpversion(), '5.1.3', '<' ) ) + { + $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + } } /** |