diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-03-29 12:20:03 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-03-29 12:20:03 +0000 |
commit | d96fa2d3668219a4105e986b3b75dd69a0d8ff37 (patch) | |
tree | b123498c093978bcac9b0a30d38ad18099f1e1cf /tests/transformation_test.php | |
parent | 46b36627ff6184fed301ab68c428a26ac5412cda (diff) | |
download | zetacomponents-graph-d96fa2d3668219a4105e986b3b75dd69a0d8ff37.zip zetacomponents-graph-d96fa2d3668219a4105e986b3b75dd69a0d8ff37.tar.gz |
- Started implementing feature request #9404 (Rotated labels on axis)
# Works only with SVG driver now.
# Angle needs to be set manually, no automatic optimal angle detection yet.
Diffstat (limited to 'tests/transformation_test.php')
-rw-r--r-- | tests/transformation_test.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/transformation_test.php b/tests/transformation_test.php index 023c7e1..140e301 100644 --- a/tests/transformation_test.php +++ b/tests/transformation_test.php @@ -116,6 +116,26 @@ class ezcGraphTransformationTest extends ezcTestCase ); } + public function testRotationGetCenter() + { + $transformation = new ezcGraphRotation( 90 ); + + $this->assertEquals( + new ezcGraphCoordinate( 0, 0 ), + $transformation->getCenter() + ); + } + + public function testRotationGetRotation() + { + $transformation = new ezcGraphRotation( 17 ); + + $this->assertEquals( + 17., + $transformation->getRotation() + ); + } + public function testCreateTranslatedRotation() { $transformation = new ezcGraphRotation( 90, new ezcGraphCoordinate( 10, 10 ) ); |