summaryrefslogtreecommitdiffstats
path: root/tests/dataset_average_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-24 10:04:45 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-24 10:04:45 +0000
commit10bce6de1d1caaf7b414f4a4b87c3dad666345b7 (patch)
tree243568d8b5e4c4d0e8b154a1cd4db9c316ef34ff /tests/dataset_average_test.php
parent77a1f4b250264da313df68a24f40f2fcf02d1690 (diff)
downloadzetacomponents-graph-10bce6de1d1caaf7b414f4a4b87c3dad666345b7.zip
zetacomponents-graph-10bce6de1d1caaf7b414f4a4b87c3dad666345b7.tar.gz
- Ensure proper polygon initialization
Diffstat (limited to 'tests/dataset_average_test.php')
-rw-r--r--tests/dataset_average_test.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/dataset_average_test.php b/tests/dataset_average_test.php
index 1c7e644..d05ba50 100644
--- a/tests/dataset_average_test.php
+++ b/tests/dataset_average_test.php
@@ -293,5 +293,20 @@ class ezcGraphDataSetAverageTest extends ezcTestCase
$this->fail( 'Expected ezcGraphDatasetAverageInvalidKeysException.' );
}
+
+ public function testPAverageDataSetIsset()
+ {
+ $arrayDataSet = new ezcGraphArrayDataSet( array( -1 => 2, 1 => 2, 3 => 10 ) );
+
+ $averageDataSet = new ezcGraphDataSetAveragePolynom( $arrayDataSet );
+ $averageDataSet->polynomOrder = 3;
+ $averageDataSet->resolution = 10;
+
+ $this->assertSame(
+ isset( $averageDataSet[0] ),
+ true,
+ 'Polygon not properly initialized.'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud