diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-02 13:21:55 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-02 13:21:55 +0000 |
commit | 96d032a0bed22a028d6e2e3510e95ad5de634ab5 (patch) | |
tree | 034c8be785af324fb0685fcfa10566e8bd5aff82 /tests | |
parent | ad12ebb93d05c9180e289dda8e0d3ff843450f58 (diff) | |
download | zetacomponents-graph-96d032a0bed22a028d6e2e3510e95ad5de634ab5.zip zetacomponents-graph-96d032a0bed22a028d6e2e3510e95ad5de634ab5.tar.gz |
- Fixed issue #10693: ezcGraphChartElementAxis::getSteps returns minor steps
after last major steps
Diffstat (limited to 'tests')
-rw-r--r-- | tests/numeric_axis_test.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/numeric_axis_test.php b/tests/numeric_axis_test.php index 96652cb..df50863 100644 --- a/tests/numeric_axis_test.php +++ b/tests/numeric_axis_test.php @@ -66,11 +66,14 @@ class ezcGraphNumericAxisTest extends ezcTestCase ); $label += 25; - $this->assertSame( - count( $step->childs ), - 4, - "[$nr] Step child count wrong." - ); + if ( $nr < ( count( $steps ) - 1 ) ) + { + $this->assertSame( + count( $step->childs ), + 4, + "[$nr] Step child count wrong." + ); + } } } |