diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-12-15 14:28:20 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-12-15 14:28:20 +0000 |
commit | c29c23763f1a0055aac81758bb5d293534a27d09 (patch) | |
tree | a21762cdae5813fa41f2ae9c2bd4a47bc9d3515a /tests/renderer_3d_test.php | |
parent | a66577e2a622b63a0037901635850ac6abb639a4 (diff) | |
download | zetacomponents-graph-c29c23763f1a0055aac81758bb5d293534a27d09.zip zetacomponents-graph-c29c23763f1a0055aac81758bb5d293534a27d09.tar.gz |
- Moced compare methods to ezcGraphTestCase
Diffstat (limited to 'tests/renderer_3d_test.php')
-rw-r--r-- | tests/renderer_3d_test.php | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 29704b8..eae4b31 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -9,13 +9,15 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ +require_once dirname( __FILE__ ) . '/test_case.php'; + /** * Tests for ezcGraph class. * * @package ImageAnalysis * @subpackage Tests */ -class ezcGraphRenderer3dTest extends ezcImageTestCase +class ezcGraphRenderer3dTest extends ezcGraphTestCase { protected $basePath; @@ -47,33 +49,6 @@ class ezcGraphRenderer3dTest extends ezcImageTestCase } } - /** - * Compares a generated image with a stored file - * - * @param string $generated Filename of generated image - * @param string $compare Filename of stored image - * @return void - */ - protected function compare( $generated, $compare ) - { - $this->assertTrue( - file_exists( $generated ), - 'No image file has been created.' - ); - - $this->assertTrue( - file_exists( $compare ), - 'Comparision image does not exist.' - ); - - if ( md5_file( $generated ) !== md5_file( $compare ) ) - { - // Adding a diff makes no sense here, because created XML uses - // only two lines - $this->fail( 'Rendered image is not correct.'); - } - } - public function testRenderBackgroundImage() { $driver = $this->getMock( 'ezcGraphSvgDriver', array( |