--- /dev/null
+--TEST-- \r
+Testing imageflip() of GD library \r
+--SKIPIF-- \r
+<?php \r
+if ( ! extension_loaded('gd') || !function_exists('imageflip')) die( 'skip GD not present; skipping test' ); \r
+?> \r
+--FILE--\r
+<?php\r
+\r
+$im = imagecreatetruecolor( 99, 99 ); \r
+\r
+imagesetpixel($im, 0, 0, 0xFF);\r
+imagesetpixel($im, 0, 98, 0x00FF00);\r
+imagesetpixel($im, 98, 0, 0xFF0000);\r
+imagesetpixel($im, 98, 98, 0x0000FF);\r
+\r
+imageflip($im, IMG_FLIP_HORINZONTAL);\r
+imageflip($im, IMG_FLIP_VERTICAL);\r
+imageflip($im, IMG_FLIP_BOTH);\r
+\r
+\r
+var_dump(dechex(imagecolorat($im, 0, 0)));\r
+var_dump(dechex(imagecolorat($im, 0, 98)));\r
+var_dump(dechex(imagecolorat($im, 98, 0)));\r
+var_dump(dechex(imagecolorat($im, 98, 98)));\r
+?> \r
+--EXPECT-- \r
+string(2) "ff"\r
+string(4) "ff00"\r
+string(6) "ff0000"\r
+string(2) "ff"
\ No newline at end of file