diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 08:49:03 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-06 08:49:03 +0000 |
commit | 8e4f782905f165b9834bff2e95d07884c1fa5bd6 (patch) | |
tree | 7ab180f36768b39a81235ba8883e38daf91c8806 /tests/labeled_axis_test.php | |
parent | 792f2f514e83efc794dd9cec3c07534c651b2a21 (diff) | |
download | zetacomponents-graph-8e4f782905f165b9834bff2e95d07884c1fa5bd6.zip zetacomponents-graph-8e4f782905f165b9834bff2e95d07884c1fa5bd6.tar.gz |
- Fixed axis to use axis type based labeling methods, which results in better
labeling
Diffstat (limited to 'tests/labeled_axis_test.php')
-rw-r--r-- | tests/labeled_axis_test.php | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php index dbc90eb..09efd5d 100644 --- a/tests/labeled_axis_test.php +++ b/tests/labeled_axis_test.php @@ -460,7 +460,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase ->with( $this->equalTo( new ezcGraphCoordinate( 122, 192 ) ), $this->equalTo( '2000' ), - $this->equalTo( 118 ), + $this->equalTo( 88 ), $this->equalTo( 8 ), $this->equalTo( ezcGraph::LEFT | ezcGraph::TOP ) ); @@ -468,21 +468,31 @@ class ezcGraphLabeledAxisTest extends ezcTestCase ->expects( $this->at( 3 ) ) ->method( 'drawTextBox' ) ->with( - $this->equalTo( new ezcGraphCoordinate( 242, 192 ) ), + $this->equalTo( new ezcGraphCoordinate( 212, 192 ) ), $this->equalTo( '2001' ), - $this->equalTo( 118 ), + $this->equalTo( 88 ), $this->equalTo( 8 ), - $this->equalTo( ezcGraph::LEFT | ezcGraph::TOP ) + $this->equalTo( ezcGraph::CENTER | ezcGraph::TOP ) ); $mockedRenderer ->expects( $this->at( 4 ) ) ->method( 'drawTextBox' ) ->with( - $this->equalTo( new ezcGraphCoordinate( 363, 192 ) ), + $this->equalTo( new ezcGraphCoordinate( 303, 192 ) ), $this->equalTo( '2002' ), - $this->equalTo( 118 ), + $this->equalTo( 88 ), $this->equalTo( 8 ), - $this->equalTo( ezcGraph::LEFT | ezcGraph::TOP ) + $this->equalTo( ezcGraph::CENTER | ezcGraph::TOP ) + ); + $mockedRenderer + ->expects( $this->at( 5 ) ) + ->method( 'drawTextBox' ) + ->with( + $this->equalTo( new ezcGraphCoordinate( 393, 192 ) ), + $this->equalTo( '2003' ), + $this->equalTo( 88 ), + $this->equalTo( 8 ), + $this->equalTo( ezcGraph::RIGHT | ezcGraph::TOP ) ); $chart->renderer = $mockedRenderer; |