diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-08-07 08:17:12 +0000 |
commit | 0c80b0f8ebf6c47237c9c99ea9f54248f1223df6 (patch) | |
tree | 54b87304e021327b7d00022a892f5cbcab00546c /tests/graph_test.php | |
parent | b31a0055fe42a14356400ebe6d7a8e5bebb26240 (diff) | |
download | zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.zip zetacomponents-graph-0c80b0f8ebf6c47237c9c99ea9f54248f1223df6.tar.gz |
- Removed factory methods and replaced them with direct class instantiation.
Diffstat (limited to 'tests/graph_test.php')
-rw-r--r-- | tests/graph_test.php | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/tests/graph_test.php b/tests/graph_test.php deleted file mode 100644 index 4c25c33..0000000 --- a/tests/graph_test.php +++ /dev/null @@ -1,78 +0,0 @@ -<?php -/** - * ezcGraphTest - * - * @package Graph - * @version //autogen// - * @subpackage Tests - * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved. - * @license http://ez.no/licenses/new_bsd New BSD License - */ - -/** - * Tests for ezcGraph class. - * - * @package ImageAnalysis - * @subpackage Tests - */ -class ezcGraphTest extends ezcTestCase -{ - - public static function suite() - { - return new ezcTestSuite( "ezcGraphTest" ); - } - - /** - * setUp - * - * @access public - */ - public function setUp() - { - } - - /** - * tearDown - * - * @access public - */ - public function tearDown() - { - } - - public function testFactoryPieChart() - { - $pieChart = ezcGraph::create( 'Pie' ); - - $this->assertTrue( - $pieChart instanceof ezcGraphPieChart, - 'ezcGraph::create did not return a ezcGraphPieChart' - ); - } - - public function testFactoryLineChart() - { - $lineChart = ezcGraph::create( 'Line' ); - - $this->assertTrue( - $lineChart instanceof ezcGraphLineChart, - 'ezcGraph::create did not return a ezcGraphLineChart' - ); - } - - public function testFactoryUnknownChart() - { - try - { - $unknownChart = ezcGraph::create( 'Unknown' ); - } - catch ( ezcGraphUnknownChartTypeException $e ) - { - return true; - } - - $this->fail( 'Expected ezcGraphUnknownChartTypeException' ); - } -} -?> |