diff options
author | Sebastian Bergmann <sb@sebastian-bergmann.de> | 2006-09-14 09:58:33 +0000 |
---|---|---|
committer | Sebastian Bergmann <sb@sebastian-bergmann.de> | 2006-09-14 09:58:33 +0000 |
commit | 32b94070bd2bc02d9d937982e2785a6c33854b2b (patch) | |
tree | eb2fc5df366ab34577dcc3d87f22d58d650ac3d6 /tests/renderer_3d_test.php | |
parent | 9dbf37fe5bdb18faae066f8ded2fa10c93343b81 (diff) | |
download | zetacomponents-graph-32b94070bd2bc02d9d937982e2785a6c33854b2b.zip zetacomponents-graph-32b94070bd2bc02d9d937982e2785a6c33854b2b.tar.gz |
Clean up setUp() and tearDown().
Diffstat (limited to 'tests/renderer_3d_test.php')
-rw-r--r-- | tests/renderer_3d_test.php | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 0d22d80..a851e03 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -17,7 +17,6 @@ */ class ezcGraphRenderer3dTest extends ezcImageTestCase { - protected $basePath; protected $tempDir; @@ -27,28 +26,20 @@ class ezcGraphRenderer3dTest extends ezcImageTestCase return new ezcTestSuite( "ezcGraphRenderer3dTest" ); } - /** - * setUp - * - * @access public - */ - public function setUp() + protected function setUp() { static $i = 0; + if ( version_compare( phpversion(), '5.1.3', '<' ) ) { - $this->markTestSkipped( "These tests required atleast PHP 5.1.3" ); + $this->markTestSkipped( "This test requires PHP 5.1.3 or later." ); } + $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; } - /** - * tearDown - * - * @access public - */ - public function tearDown() + protected function tearDown() { if( !$this->hasFailed() ) { |