aboutsummaryrefslogtreecommitdiffstats
path: root/community/php7-imagick/fix-affineTransformImage-test.patch
blob: 00570a9e6256accf76c7a9054f8aad26b1c17374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/tests/031_Imagick_affineTransformImage_basic.phpt b/tests/031_Imagick_affineTransformImage_basic.phpt
index d64fa05..27841d8 100644
--- a/tests/031_Imagick_affineTransformImage_basic.phpt
+++ b/tests/031_Imagick_affineTransformImage_basic.phpt
@@ -14,7 +14,7 @@ function affineTransformImage() {
     $imagick->newPseudoImage(640, 480, "magick:logo");
     $draw = new \ImagickDraw();
 
-    $angle = 40 ;
+    $angle = deg2rad(40);
 
     $affineRotate = array(
         "sx" => cos($angle), "sy" => cos($angle), 
@@ -34,4 +34,4 @@ affineTransformImage() ;
 echo "Ok";
 ?>
 --EXPECTF--
-Ok
\ No newline at end of file
+Ok