@@ -11,7 +11,7 @@ class ImageResizeTest extends TestCase
11
11
protected $ newImage ;
12
12
protected $ user ;
13
13
14
- protected function setUp ()
14
+ protected function setUp (): void
15
15
{
16
16
parent ::setUp ();
17
17
@@ -20,7 +20,7 @@ protected function setUp()
20
20
$ this ->assertTrue (file_exists ($ this ->testImage ), 'Test image file do not exists. ' );
21
21
}
22
22
23
- protected function tearDown ()
23
+ protected function tearDown (): void
24
24
{
25
25
parent ::tearDown ();
26
26
@@ -31,10 +31,10 @@ protected function tearDown()
31
31
32
32
33
33
/**
34
- * it resize image based on width given
35
- *
36
- * @test
37
- */
34
+ * it resize image based on width given
35
+ *
36
+ * @test
37
+ */
38
38
public function it_resize_image_based_on_width_given ()
39
39
{
40
40
$ this ->newImage = $ this ->user ->resizeImage ($ this ->testImage , ['width ' => 300 ]);
@@ -43,10 +43,10 @@ public function it_resize_image_based_on_width_given()
43
43
}
44
44
45
45
/**
46
- * it resize image by height
47
- *
48
- * @test
49
- */
46
+ * it resize image by height
47
+ *
48
+ * @test
49
+ */
50
50
public function it_resize_image_by_height ()
51
51
{
52
52
$ this ->newImage = $ this ->user ->resizeImage ($ this ->testImage , ['height ' => 200 ]);
@@ -55,10 +55,10 @@ public function it_resize_image_by_height()
55
55
}
56
56
57
57
/**
58
- * it crops image in given width and height
59
- *
60
- * @test
61
- */
58
+ * it crops image in given width and height
59
+ *
60
+ * @test
61
+ */
62
62
public function it_crops_image_in_given_width_and_height ()
63
63
{
64
64
$ this ->newImage = $ this ->user ->resizeImage (
@@ -95,10 +95,10 @@ public function it_crops_in_x_and_y_if_crop_is_set_to_array_of_coordinates()
95
95
}
96
96
97
97
/**
98
- * it can override the crop x and y coordinates
99
- *
100
- * @test
101
- */
98
+ * it can override the crop x and y coordinates
99
+ *
100
+ * @test
101
+ */
102
102
public function it_can_override_the_crop_x_and_y_coordinates ()
103
103
{
104
104
$ this ->newImage = $ this ->user ->cropTo (10 , 0 )->resizeImage (
@@ -115,10 +115,10 @@ public function it_can_override_the_crop_x_and_y_coordinates()
115
115
}
116
116
117
117
/**
118
- * it do not resize if width and height are not provided
119
- *
120
- * @test
121
- */
118
+ * it do not resize if width and height are not provided
119
+ *
120
+ * @test
121
+ */
122
122
public function it_do_not_resize_if_width_and_height_are_not_provided ()
123
123
{
124
124
$ this ->newImage = $ this ->user ->resizeImage ($ this ->testImage , []);
0 commit comments