summaryrefslogtreecommitdiffstats
path: root/tests/date_axis_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-01-18 11:30:27 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-01-18 11:30:27 +0000
commit1d00d843091b1cb474d5580329d1114d90e4ac2d (patch)
tree55811d93c369d3d7a8a813c98d88488db193a944 /tests/date_axis_test.php
parent5494f63476e4baa446b017e32755b087d32c1255 (diff)
downloadzetacomponents-graph-1d00d843091b1cb474d5580329d1114d90e4ac2d.zip
zetacomponents-graph-1d00d843091b1cb474d5580329d1114d90e4ac2d.tar.gz
- Missed and fixed one test case for issue #10018.
Diffstat (limited to 'tests/date_axis_test.php')
-rw-r--r--tests/date_axis_test.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/date_axis_test.php b/tests/date_axis_test.php
index b4b3a97..f5a81c0 100644
--- a/tests/date_axis_test.php
+++ b/tests/date_axis_test.php
@@ -549,6 +549,30 @@ class ezcGraphDateAxisTest extends ezcGraphTestCase
$this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
);
}
+
+ public function testMonthInterval3()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $this->chart->data['some data'] = new ezcGraphArrayDataSet( array(
+ strtotime( '2006-10-16' ) => 7.78507871321,
+ strtotime( '2006-10-30' ) => 7.52224503765,
+ strtotime( '2006-11-20' ) => 7.29226557153,
+ strtotime( '2006-11-28' ) => 7.06228610541,
+ strtotime( '2006-12-05' ) => 6.66803559206,
+ strtotime( '2006-12-11' ) => 6.37234770705,
+ strtotime( '2006-12-28' ) => 6.04517453799,
+ ) );
+ $this->chart->xAxis->endDate = strtotime( '2006-12-30' );
+ $this->chart->data['some data']->symbol = ezcGraph::DIAMOND;
+
+ $this->chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud