File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,44 @@ public function testFlattenImage(): void
116116 $ this ->testConvertIdentifyImage ($ imageOutput , 'JPEG ' , '180x170+0+0 ' , '8-bit ' );
117117 }
118118
119+ public function testTranspose (): void
120+ {
121+ $ command = new Command (IMAGEMAGICK_DIR );
122+
123+ $ imageSource = $ this ->resourcesDir .'/moon_180.jpg ' ;
124+ $ imageOutput = $ this ->resourcesDir .'/outputs/moon_transpose.jpg ' ;
125+ static ::assertFileExists ($ imageSource );
126+
127+ $ response = $ command
128+ ->convert ($ imageSource )
129+ ->transpose ()
130+ ->file ($ imageOutput , false )
131+ ->run ()
132+ ;
133+
134+ static ::assertFalse ($ response ->hasFailed ());
135+ static ::assertFileExists ($ this ->resourcesDir .'/outputs/moon_transpose.jpg ' );
136+ }
137+
138+ public function testTransverse (): void
139+ {
140+ $ command = new Command (IMAGEMAGICK_DIR );
141+
142+ $ imageSource = $ this ->resourcesDir .'/moon_180.jpg ' ;
143+ $ imageOutput = $ this ->resourcesDir .'/outputs/moon_transverse.jpg ' ;
144+ static ::assertFileExists ($ imageSource );
145+
146+ $ response = $ command
147+ ->convert ($ imageSource )
148+ ->transverse ()
149+ ->file ($ imageOutput , false )
150+ ->run ()
151+ ;
152+
153+ static ::assertFalse ($ response ->hasFailed ());
154+ static ::assertFileExists ($ this ->resourcesDir .'/outputs/moon_transverse.jpg ' );
155+ }
156+
119157 public function testColorspaceImage (): void
120158 {
121159 $ command = new Command (IMAGEMAGICK_DIR );
You can’t perform that action at this time.
0 commit comments