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_2d_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_2d_test.php')
-rw-r--r-- | tests/renderer_2d_test.php | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index c62c045..ad1e597 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -17,7 +17,6 @@ */ class ezcGraphRenderer2dTest extends ezcTestCase { - protected $basePath; protected $tempDir; @@ -31,18 +30,14 @@ class ezcGraphRenderer2dTest extends ezcTestCase return new ezcTestSuite( "ezcGraphRenderer2dTest" ); } - /** - * 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/'; @@ -63,12 +58,7 @@ class ezcGraphRenderer2dTest extends ezcTestCase $this->driver->options->height = 200; } - /** - * tearDown - * - * @access public - */ - public function tearDown() + protected function tearDown() { if ( !$this->hasFailed() ) { |