summaryrefslogtreecommitdiffstats
path: root/tests/graph_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/graph_test.php')
-rw-r--r--tests/graph_test.php78
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' );
- }
-}
-?>
OpenPOWER on IntegriCloud