summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-03 11:28:16 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-03 11:28:16 +0000
commit7090a42cd106646837dde004fd8e67810c003329 (patch)
tree811bd1c23519c388b6c1e0576aa73c4ca4148acb /tests
parenta0dda29ca2e156e58d755d3e0b41b53523dfb075 (diff)
downloadzetacomponents-graph-7090a42cd106646837dde004fd8e67810c003329.zip
zetacomponents-graph-7090a42cd106646837dde004fd8e67810c003329.tar.gz
- Add one more test for labeled axis label order
Diffstat (limited to 'tests')
-rw-r--r--tests/labeled_axis_test.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php
index 6d8bc41..23d0a77 100644
--- a/tests/labeled_axis_test.php
+++ b/tests/labeled_axis_test.php
@@ -68,6 +68,19 @@ class ezcGraphLabeledAxisTest extends ezcTestCase
);
}
+ public function testAutomaticLabelingMultiple2()
+ {
+ $chart = new ezcGraphLineChart();
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array( 1 => 1, 3 => 3, 5 => 5, 8 => 8 ) );
+ $chart->data['sample2'] = new ezcGraphArrayDataSet( array( 1, 2, 3, 4, 5, 6, 7, 8 ) );
+ $chart->render( 500, 200 );
+
+ $this->assertEquals(
+ array( 0, 1, 2, 3, 4, 5, 6, 7, 8 ),
+ $this->getAttribute( $chart->xAxis, 'labels' )
+ );
+ }
+
public function testAutomaticLabelingMultipleMixed()
{
$chart = new ezcGraphLineChart();
OpenPOWER on IntegriCloud