Annotation of embedaddon/php/ext/gd/tests/imagearc_variation1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Testing passing negative end angle to imagearc() of GD library
                      3: --CREDITS--
                      4: Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
                      5: #testfest PHPSP on 2009-06-20
                      6: --SKIPIF--
                      7: <?php 
                      8: if (!extension_loaded("gd")) die("skip GD not present");
                      9: ?>
                     10: --FILE--
                     11: <?php
                     12: 
                     13: $image = imagecreatetruecolor(100, 100);
                     14: 
                     15: $white = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
                     16: 
                     17: //create an arc with white color    
                     18: imagearc($image, 50, 50, 30, 30, 0, -90, $white);
                     19: 
                     20: ob_start();
                     21: imagepng($image);
                     22: $img = ob_get_contents();
                     23: ob_end_clean();
                     24: 
                     25: echo md5(base64_encode($img));
                     26: ?>
                     27: --EXPECT--
                     28: ed2c8427a9922dfd8a105f10a88a0d20

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>