summaryrefslogtreecommitdiffstats
path: root/tests/transformation_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-03-29 12:20:03 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-03-29 12:20:03 +0000
commitd96fa2d3668219a4105e986b3b75dd69a0d8ff37 (patch)
treeb123498c093978bcac9b0a30d38ad18099f1e1cf /tests/transformation_test.php
parent46b36627ff6184fed301ab68c428a26ac5412cda (diff)
downloadzetacomponents-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.php20
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 ) );
OpenPOWER on IntegriCloud