summaryrefslogtreecommitdiffstats
path: root/tests/dataset_average_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-06 15:01:10 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-06 15:01:10 +0000
commitbf0f2e15fa017a5bbea6dce8517a79063fc8b325 (patch)
tree5686849cf7e93e4b5b4878712262d45f1d62c79c /tests/dataset_average_test.php
parent9f40ec30e4737262a2132dfa76dc0beba30fa795 (diff)
downloadzetacomponents-graph-bf0f2e15fa017a5bbea6dce8517a79063fc8b325.zip
zetacomponents-graph-bf0f2e15fa017a5bbea6dce8517a79063fc8b325.tar.gz
- Made maximum polynom order for average polynoms constructor parameter
Diffstat (limited to 'tests/dataset_average_test.php')
-rw-r--r--tests/dataset_average_test.php15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/dataset_average_test.php b/tests/dataset_average_test.php
index 758d8c5..1d67f8c 100644
--- a/tests/dataset_average_test.php
+++ b/tests/dataset_average_test.php
@@ -190,17 +190,10 @@ class ezcGraphDataSetAverageTest extends ezcTestCase
) );
$chart->data['Statistical data']->symbol = ezcGraph::BULLET;
- $chart->data['polynom order 0'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'] );
- $chart->data['polynom order 0']->polynomOrder = 0;
-
- $chart->data['polynom order 1'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'] );
- $chart->data['polynom order 1']->polynomOrder = 1;
-
- $chart->data['polynom order 3'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'] );
- $chart->data['polynom order 3']->polynomOrder = 3;
-
- $chart->data['polynom order 5'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'] );
- $chart->data['polynom order 5']->polynomOrder = 5;
+ $chart->data['polynom order 0'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'], 0 );
+ $chart->data['polynom order 1'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'], 1 );
+ $chart->data['polynom order 3'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'], 3 );
+ $chart->data['polynom order 5'] = new ezcGraphDataSetAveragePolynom( $chart->data['Statistical data'], 5 );
$chart->xAxis = new ezcGraphChartElementNumericAxis();
OpenPOWER on IntegriCloud