summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dataset_test.php60
-rw-r--r--tests/numeric_axis_test.php2
-rw-r--r--tests/palette_test.php20
-rw-r--r--tests/renderer_2d_test.php8
-rw-r--r--tests/suite.php2
5 files changed, 46 insertions, 46 deletions
diff --git a/tests/dataset_test.php b/tests/dataset_test.php
index b333418..0ae5984 100644
--- a/tests/dataset_test.php
+++ b/tests/dataset_test.php
@@ -1,6 +1,6 @@
<?php
/**
- * ezcGraphDatasetTest
+ * ezcGraphDataSetTest
*
* @package Graph
* @version //autogen//
@@ -15,12 +15,12 @@
* @package ImageAnalysis
* @subpackage Tests
*/
-class ezcGraphDatasetTest extends ezcTestCase
+class ezcGraphDataSetTest extends ezcTestCase
{
public static function suite()
{
- return new ezcTestSuite( "ezcGraphDatasetTest" );
+ return new ezcTestSuite( "ezcGraphDataSetTest" );
}
/**
@@ -41,30 +41,30 @@ class ezcGraphDatasetTest extends ezcTestCase
{
}
- public function testCreateDatasetFromArray()
+ public function testCreateDataSetFromArray()
{
$chart = ezcGraph::create( 'Pie' );
$chart['humanoids'] = array( 'monkey' => 54, 'ape' => 37, 'human' => 9 );
$datasets = $this->getNonPublicProperty( $chart, 'data' );
$this->assertTrue(
- $datasets['humanoids'] instanceof ezcGraphDataset,
- 'No ezcGraphDataset was created.'
+ $datasets['humanoids'] instanceof ezcGraphDataSet,
+ 'No ezcGraphDataSet was created.'
);
}
- public function testGetDataset()
+ public function testGetDataSet()
{
$chart = ezcGraph::create( 'Pie' );
$chart['humanoids'] = array( 'monkey' => 54, 'ape' => 37, 'human' => 9 );
$this->assertTrue(
- $chart['humanoids'] instanceof ezcGraphDataset,
- 'No ezcGraphDataset was created.'
+ $chart['humanoids'] instanceof ezcGraphDataSet,
+ 'No ezcGraphDataSet was created.'
);
}
- public function testDatasetContent()
+ public function testDataSetContent()
{
$chart = ezcGraph::create( 'Pie' );
$chart['example'] = array( 'monkey' => 54, 2001 => 37 );
@@ -81,7 +81,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testCreateMultipleDatasetsFromArray()
+ public function testCreateMultipleDataSetsFromArray()
{
$chart = ezcGraph::create( 'Line' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -89,16 +89,16 @@ class ezcGraphDatasetTest extends ezcTestCase
$datasets = $this->getNonPublicProperty( $chart, 'data' );
$this->assertTrue(
- $datasets['income'] instanceof ezcGraphDataset,
- 'No ezcGraphDataset was created.'
+ $datasets['income'] instanceof ezcGraphDataSet,
+ 'No ezcGraphDataSet was created.'
);
$this->assertTrue(
- $datasets['spending'] instanceof ezcGraphDataset,
- 'No second ezcGraphDataset was created.'
+ $datasets['spending'] instanceof ezcGraphDataSet,
+ 'No second ezcGraphDataSet was created.'
);
}
- public function testCreateMultiplePiechartDatasetsFromArray()
+ public function testCreateMultiplePiechartDataSetsFromArray()
{
try
{
@@ -106,15 +106,15 @@ class ezcGraphDatasetTest extends ezcTestCase
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
$chart['spending'] = array( 2000 => 2347.2, 2458.3, 2569.4 );
}
- catch ( ezcGraphTooManyDatasetsExceptions $e )
+ catch ( ezcGraphTooManyDataSetsExceptions $e )
{
return true;
}
- $this->fail( 'Expected ezcGraphTooManyDatasetsExceptions.' );
+ $this->fail( 'Expected ezcGraphTooManyDataSetsExceptions.' );
}
- public function testDatasetLabel()
+ public function testDataSetLabel()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -125,7 +125,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetLabel()
+ public function testDataSetSetLabel()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -137,7 +137,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetColor()
+ public function testDataSetSetColor()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -149,7 +149,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetHighlight()
+ public function testDataSetSetHighlight()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -161,7 +161,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetGetHighlight()
+ public function testDataSetGetHighlight()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -177,7 +177,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetHighlightSingle()
+ public function testDataSetSetHighlightSingle()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -194,7 +194,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetSingleColor()
+ public function testDataSetSetSingleColor()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -206,7 +206,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetSingleSymbol()
+ public function testDataSetSetSingleSymbol()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -218,7 +218,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetPropertyValueFallback()
+ public function testDataSetPropertyValueFallback()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -230,7 +230,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetNonexistingSingle()
+ public function testDataSetSetNonexistingSingle()
{
try
{
@@ -246,7 +246,7 @@ class ezcGraphDatasetTest extends ezcTestCase
$this->fail( 'Expected ezcGraphNoSuchDataException.' );
}
- public function testDatasetGetSingleData()
+ public function testDataSetGetSingleData()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
@@ -257,7 +257,7 @@ class ezcGraphDatasetTest extends ezcTestCase
);
}
- public function testDatasetSetSingleData()
+ public function testDataSetSetSingleData()
{
$chart = ezcGraph::create( 'Pie' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
diff --git a/tests/numeric_axis_test.php b/tests/numeric_axis_test.php
index f5b7a28..e9a7d9a 100644
--- a/tests/numeric_axis_test.php
+++ b/tests/numeric_axis_test.php
@@ -578,7 +578,7 @@ class ezcGraphNumericAxisTest extends ezcTestCase
);
}
- public function testNullPositionMultipleDatasets()
+ public function testNullPositionMultipleDataSets()
{
$chart = ezcGraph::create( 'Line' );
$chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => -21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1);
diff --git a/tests/palette_test.php b/tests/palette_test.php
index 5ed820f..c1ee41d 100644
--- a/tests/palette_test.php
+++ b/tests/palette_test.php
@@ -129,55 +129,55 @@ class ezcGraphPaletteTest extends ezcTestCase
$this->assertEquals(
ezcGraphColor::fromHex( '#3465A4' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#4E9A06' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#CC0000' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#EDD400' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#75505B' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#F57900' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#204A87' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#C17D11' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
$this->assertEquals(
ezcGraphColor::fromHex( '#3465A4' ),
$chart->palette->dataSetColor,
- 'Dataset color not properly set.'
+ 'DataSet color not properly set.'
);
}
@@ -286,7 +286,7 @@ class ezcGraphPaletteTest extends ezcTestCase
);
}
- public function testDatasetAutomaticColorization()
+ public function testDataSetAutomaticColorization()
{
$chart = ezcGraph::create( 'Line' );
$chart['income'] = array( 2000 => 2345.2, 2456.3, 2567.4 );
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 79ea7c5..f1e3c1d 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1107,7 +1107,7 @@ class ezcGraphRenderer2dTest extends ezcImageTestCase
$chart['evenMoreData'],
);
- $chart->legend->generateFromDatasets( $datasets );
+ $chart->legend->generateFromDataSets( $datasets );
$this->driver
->expects( $this->at( 0 ) )
@@ -1174,7 +1174,7 @@ class ezcGraphRenderer2dTest extends ezcImageTestCase
$chart['evenMoreData'],
);
- $chart->legend->generateFromDatasets( $datasets );
+ $chart->legend->generateFromDataSets( $datasets );
$this->driver
->expects( $this->at( 1 ) )
@@ -1232,7 +1232,7 @@ class ezcGraphRenderer2dTest extends ezcImageTestCase
$chart['evenMoreData'],
);
- $chart->legend->generateFromDatasets( $datasets );
+ $chart->legend->generateFromDataSets( $datasets );
$this->driver
->expects( $this->at( 0 ) )
@@ -1300,7 +1300,7 @@ class ezcGraphRenderer2dTest extends ezcImageTestCase
$chart['evenMoreData'],
);
- $chart->legend->generateFromDatasets( $datasets );
+ $chart->legend->generateFromDataSets( $datasets );
$this->driver
->expects( $this->at( 1 ) )
diff --git a/tests/suite.php b/tests/suite.php
index cb4f433..9fc1a1a 100644
--- a/tests/suite.php
+++ b/tests/suite.php
@@ -53,7 +53,7 @@ class ezcGraphSuite extends ezcTestSuite
$this->addTest( ezcGraphChartTest::suite() );
$this->addTest( ezcGraphPieChartTest::suite() );
$this->addTest( ezcGraphLineChartTest::suite() );
- $this->addTest( ezcGraphDatasetTest::suite() );
+ $this->addTest( ezcGraphDataSetTest::suite() );
$this->addTest( ezcGraphLegendTest::suite() );
$this->addTest( ezcGraphNumericAxisTest::suite() );
$this->addTest( ezcGraphLabeledAxisTest::suite() );
OpenPOWER on IntegriCloud