/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ */ #include /////////////////////////////////////////////////////////////////////////////// bool TestExtImage::RunTests(const std::string &which) { bool ret = true; RUN_TEST(test_gd_info); RUN_TEST(test_getimagesize); RUN_TEST(test_image_type_to_extension); RUN_TEST(test_image_type_to_mime_type); RUN_TEST(test_image2wbmp); RUN_TEST(test_imagealphablending); RUN_TEST(test_imageantialias); RUN_TEST(test_imagearc); RUN_TEST(test_imagechar); RUN_TEST(test_imagecharup); RUN_TEST(test_imagecolorallocate); RUN_TEST(test_imagecolorallocatealpha); RUN_TEST(test_imagecolorat); RUN_TEST(test_imagecolorclosest); RUN_TEST(test_imagecolorclosestalpha); RUN_TEST(test_imagecolorclosesthwb); RUN_TEST(test_imagecolordeallocate); RUN_TEST(test_imagecolorexact); RUN_TEST(test_imagecolorexactalpha); RUN_TEST(test_imagecolormatch); RUN_TEST(test_imagecolorresolve); RUN_TEST(test_imagecolorresolvealpha); RUN_TEST(test_imagecolorset); RUN_TEST(test_imagecolorsforindex); RUN_TEST(test_imagecolorstotal); RUN_TEST(test_imagecolortransparent); RUN_TEST(test_imageconvolution); RUN_TEST(test_imagecopy); RUN_TEST(test_imagecopymerge); RUN_TEST(test_imagecopymergegray); RUN_TEST(test_imagecopyresampled); RUN_TEST(test_imagecopyresized); RUN_TEST(test_imagecreate); RUN_TEST(test_imagecreatefromgd2part); RUN_TEST(test_imagecreatefromgd); RUN_TEST(test_imagecreatefromgd2); RUN_TEST(test_imagecreatefromgif); RUN_TEST(test_imagecreatefromjpeg); RUN_TEST(test_imagecreatefrompng); RUN_TEST(test_imagecreatefromstring); RUN_TEST(test_imagecreatefromwbmp); RUN_TEST(test_imagecreatefromxbm); RUN_TEST(test_imagecreatefromxpm); RUN_TEST(test_imagecreatetruecolor); RUN_TEST(test_imagedashedline); RUN_TEST(test_imagedestroy); RUN_TEST(test_imageellipse); RUN_TEST(test_imagefill); RUN_TEST(test_imagefilledarc); RUN_TEST(test_imagefilledellipse); RUN_TEST(test_imagefilledpolygon); RUN_TEST(test_imagefilledrectangle); RUN_TEST(test_imagefilltoborder); RUN_TEST(test_imagefilter); RUN_TEST(test_imagefontheight); RUN_TEST(test_imagefontwidth); RUN_TEST(test_imageftbbox); RUN_TEST(test_imagefttext); RUN_TEST(test_imagegammacorrect); RUN_TEST(test_imagegd2); RUN_TEST(test_imagegd); RUN_TEST(test_imagegif); RUN_TEST(test_imagegrabscreen); RUN_TEST(test_imagegrabwindow); RUN_TEST(test_imageinterlace); RUN_TEST(test_imageistruecolor); RUN_TEST(test_imagejpeg); RUN_TEST(test_imagelayereffect); RUN_TEST(test_imageline); RUN_TEST(test_imageloadfont); RUN_TEST(test_imagepalettecopy); RUN_TEST(test_imagepng); RUN_TEST(test_imagepolygon); RUN_TEST(test_imagepsbbox); RUN_TEST(test_imagepsencodefont); RUN_TEST(test_imagepsextendfont); RUN_TEST(test_imagepsfreefont); RUN_TEST(test_imagepsloadfont); RUN_TEST(test_imagepsslantfont); RUN_TEST(test_imagepstext); RUN_TEST(test_imagerectangle); RUN_TEST(test_imagerotate); RUN_TEST(test_imagesavealpha); RUN_TEST(test_imagesetbrush); RUN_TEST(test_imagesetpixel); RUN_TEST(test_imagesetstyle); RUN_TEST(test_imagesetthickness); RUN_TEST(test_imagesettile); RUN_TEST(test_imagestring); RUN_TEST(test_imagestringup); RUN_TEST(test_imagesx); RUN_TEST(test_imagesy); RUN_TEST(test_imagetruecolortopalette); RUN_TEST(test_imagettfbbox); RUN_TEST(test_imagettftext); RUN_TEST(test_imagetypes); RUN_TEST(test_imagewbmp); RUN_TEST(test_imagexbm); RUN_TEST(test_iptcembed); RUN_TEST(test_iptcparse); RUN_TEST(test_jpeg2wbmp); RUN_TEST(test_png2wbmp); RUN_TEST(test_exif_imagetype); RUN_TEST(test_exif_read_data); RUN_TEST(test_read_exif_data); RUN_TEST(test_exif_tagname); RUN_TEST(test_exif_thumbnail); return ret; } /////////////////////////////////////////////////////////////////////////////// bool TestExtImage::test_gd_info() { //VCB("