diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 10:04:45 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-09-24 10:04:45 +0000 |
commit | 10bce6de1d1caaf7b414f4a4b87c3dad666345b7 (patch) | |
tree | 243568d8b5e4c4d0e8b154a1cd4db9c316ef34ff /tests/dataset_average_test.php | |
parent | 77a1f4b250264da313df68a24f40f2fcf02d1690 (diff) | |
download | zetacomponents-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.php | 15 |
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.' + ); + } } ?> |