@@ -24,11 +24,13 @@ public function testConstructor(): void
24
24
autoOrientation: false ,
25
25
decodeAnimation: false ,
26
26
blendingColor: 'f00 ' ,
27
+ strip: true ,
27
28
);
28
29
$ this ->assertInstanceOf (Config::class, $ config );
29
30
30
31
$ this ->assertFalse ($ config ->autoOrientation );
31
32
$ this ->assertFalse ($ config ->decodeAnimation );
33
+ $ this ->assertTrue ($ config ->strip );
32
34
$ this ->assertEquals ('f00 ' , $ config ->blendingColor );
33
35
}
34
36
@@ -37,12 +39,14 @@ public function testGetSetOptions(): void
37
39
$ config = new Config ();
38
40
$ this ->assertTrue ($ config ->autoOrientation );
39
41
$ this ->assertTrue ($ config ->decodeAnimation );
42
+ $ this ->assertFalse ($ config ->strip );
40
43
$ this ->assertEquals ('ffffff ' , $ config ->blendingColor );
41
44
42
45
$ result = $ config ->setOptions (
43
46
autoOrientation: false ,
44
47
decodeAnimation: false ,
45
48
blendingColor: 'f00 ' ,
49
+ strip: true ,
46
50
);
47
51
48
52
$ this ->assertFalse ($ config ->autoOrientation );
@@ -51,16 +55,19 @@ public function testGetSetOptions(): void
51
55
52
56
$ this ->assertFalse ($ result ->autoOrientation );
53
57
$ this ->assertFalse ($ result ->decodeAnimation );
58
+ $ this ->assertTrue ($ result ->strip );
54
59
$ this ->assertEquals ('f00 ' , $ result ->blendingColor );
55
60
56
61
$ result = $ config ->setOptions (blendingColor: '000 ' );
57
62
58
63
$ this ->assertFalse ($ config ->autoOrientation );
59
64
$ this ->assertFalse ($ config ->decodeAnimation );
65
+ $ this ->assertTrue ($ config ->strip );
60
66
$ this ->assertEquals ('000 ' , $ config ->blendingColor );
61
67
62
68
$ this ->assertFalse ($ result ->autoOrientation );
63
69
$ this ->assertFalse ($ result ->decodeAnimation );
70
+ $ this ->assertTrue ($ result ->strip );
64
71
$ this ->assertEquals ('000 ' , $ result ->blendingColor );
65
72
}
66
73
@@ -71,13 +78,16 @@ public function testSetOptionsWithArray(): void
71
78
'autoOrientation ' => false ,
72
79
'decodeAnimation ' => false ,
73
80
'blendingColor ' => 'f00 ' ,
81
+ 'strip ' => true ,
74
82
]);
75
83
76
84
$ this ->assertFalse ($ config ->autoOrientation );
77
85
$ this ->assertFalse ($ config ->decodeAnimation );
86
+ $ this ->assertTrue ($ config ->strip );
78
87
$ this ->assertEquals ('f00 ' , $ config ->blendingColor );
79
88
$ this ->assertFalse ($ result ->autoOrientation );
80
89
$ this ->assertFalse ($ result ->decodeAnimation );
90
+ $ this ->assertTrue ($ result ->strip );
81
91
$ this ->assertEquals ('f00 ' , $ result ->blendingColor );
82
92
}
83
93
}
0 commit comments