diff options
author | Derick Rethans <github@derickrethans.nl> | 2006-08-22 08:39:03 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2006-08-22 08:39:03 +0000 |
commit | 5298e85976086eeaac3517c359e41f2c2ee444d5 (patch) | |
tree | 2a656b1414b925fe585be61f0b5a3a598f28c0ea | |
parent | 5091a24682cf37af25eebd4158a0d9480aea6252 (diff) | |
download | zetacomponents-graph-5298e85976086eeaac3517c359e41f2c2ee444d5.zip zetacomponents-graph-5298e85976086eeaac3517c359e41f2c2ee444d5.tar.gz |
- Mark these tests as skipped when testing with PHP 5.1.3 because PHPUnit
requires PHp 5.1.3 or higher for those tests to work.
-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" ); + } } /** |